forked from actgardner/gogen-avro
-
Notifications
You must be signed in to change notification settings - Fork 0
/
string.go
63 lines (47 loc) · 1.26 KB
/
string.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
54
55
56
57
58
59
60
61
62
63
package types
type String struct {
Target *string
}
func (b String) SetBoolean(v bool) {
panic("Unable to assign boolean to string field")
}
func (b String) SetInt(v int32) {
panic("Unable to assign int to string field")
}
func (b String) SetLong(v int64) {
panic("Unable to assign long to string field")
}
func (b String) SetFloat(v float32) {
panic("Unable to assign float to string field")
}
func (b String) SetUnionElem(v int64) {
panic("Unable to assign union elem to string field")
}
func (b String) SetDouble(v float64) {
panic("Unable to assign double to string field")
}
func (b String) SetBytes(v []byte) {
*(b.Target) = string(v)
}
func (b String) SetString(v string) {
*(b.Target) = v
}
func (b String) Get(i int) Field {
panic("Unable to get field from string field")
}
func (b String) SetDefault(i int) {
panic("Unable to set default on string field")
}
func (b String) AppendMap(key string) Field {
panic("Unable to append map key to from string field")
}
func (b String) AppendArray() Field {
panic("Unable to append array element to from string field")
}
func (b String) NullField(int) {
panic("Unable to null field in string field")
}
func (b String) HintSize(int) {
panic("Unable to hint size in string field")
}
func (b String) Finalize() {}