-
Notifications
You must be signed in to change notification settings - Fork 85
/
double.go
53 lines (39 loc) · 1.07 KB
/
double.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
package types
type Double float64
func (b *Double) SetBoolean(v bool) {
panic("Unable to assign boolean to double field")
}
func (b *Double) SetInt(v int32) {
*(*float64)(b) = float64(v)
}
func (b *Double) SetLong(v int64) {
*(*float64)(b) = float64(v)
}
func (b *Double) SetFloat(v float32) {
*(*float64)(b) = float64(v)
}
func (b *Double) SetDouble(v float64) {
*(*float64)(b) = v
}
func (b *Double) SetUnionElem(v int64) {
panic("Unable to assign union elem to double field")
}
func (b *Double) SetBytes(v []byte) {
panic("Unable to assign bytes to double field")
}
func (b *Double) SetString(v string) {
panic("Unable to assign string to double field")
}
func (b *Double) Get(i int) Field {
panic("Unable to get field from double field")
}
func (b *Double) SetDefault(i int) {
panic("Unable to set default on double field")
}
func (b *Double) AppendMap(key string) Field {
panic("Unable to append map key to from double field")
}
func (b *Double) AppendArray() Field {
panic("Unable to append array element to from double field")
}
func (b *Double) Finalize() {}