We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e2a66a2 commit 72279f4Copy full SHA for 72279f4
protocol/reflect_unsafe.go
@@ -63,6 +63,8 @@ func (v value) int32() int32 { return *(*int32)(v.ptr) }
63
64
func (v value) int64() int64 { return *(*int64)(v.ptr) }
65
66
+func (v value) float64() float64 { return *(*float64)(v.ptr) }
67
+
68
func (v value) string() string { return *(*string)(v.ptr) }
69
70
func (v value) bytes() []byte { return *(*[]byte)(v.ptr) }
@@ -92,6 +94,8 @@ func (v value) setInt32(i int32) { *(*int32)(v.ptr) = i }
92
94
93
95
func (v value) setInt64(i int64) { *(*int64)(v.ptr) = i }
96
97
+func (v value) setFloat64(f float64) { *(*float64)(v.ptr) = f }
98
99
func (v value) setString(s string) { *(*string)(v.ptr) = s }
100
101
func (v value) setBytes(b []byte) { *(*[]byte)(v.ptr) = b }
0 commit comments