@@ -40,7 +40,7 @@ func (s *Set) ToJSONStream(w io.Writer) error {
40
40
var r reusableBuilder
41
41
42
42
stream .WriteObjectStart ()
43
- err := s .emitContents_v1 (false , stream , & r )
43
+ err := s .emitContentsV1 (false , stream , & r )
44
44
if err != nil {
45
45
return err
46
46
}
@@ -76,7 +76,7 @@ func (r *reusableBuilder) reset() *bytes.Buffer {
76
76
return & r .Buffer
77
77
}
78
78
79
- func (s * Set ) emitContents_v1 (includeSelf bool , stream * jsoniter.Stream , r * reusableBuilder ) error {
79
+ func (s * Set ) emitContentsV1 (includeSelf bool , stream * jsoniter.Stream , r * reusableBuilder ) error {
80
80
mi , ci := 0 , 0
81
81
first := true
82
82
preWrite := func () {
@@ -112,7 +112,7 @@ func (s *Set) emitContents_v1(includeSelf bool, stream *jsoniter.Stream, r *reus
112
112
}
113
113
stream .WriteObjectField (r .unsafeString ())
114
114
stream .WriteObjectStart ()
115
- if err := s .Children .members [ci ].set .emitContents_v1 (false , stream , r ); err != nil {
115
+ if err := s .Children .members [ci ].set .emitContentsV1 (false , stream , r ); err != nil {
116
116
return err
117
117
}
118
118
stream .WriteObjectEnd ()
@@ -124,7 +124,7 @@ func (s *Set) emitContents_v1(includeSelf bool, stream *jsoniter.Stream, r *reus
124
124
}
125
125
stream .WriteObjectField (r .unsafeString ())
126
126
stream .WriteObjectStart ()
127
- if err := s .Children .members [ci ].set .emitContents_v1 (true , stream , r ); err != nil {
127
+ if err := s .Children .members [ci ].set .emitContentsV1 (true , stream , r ); err != nil {
128
128
return err
129
129
}
130
130
stream .WriteObjectEnd ()
@@ -154,7 +154,7 @@ func (s *Set) emitContents_v1(includeSelf bool, stream *jsoniter.Stream, r *reus
154
154
}
155
155
stream .WriteObjectField (r .unsafeString ())
156
156
stream .WriteObjectStart ()
157
- if err := s .Children .members [ci ].set .emitContents_v1 (false , stream , r ); err != nil {
157
+ if err := s .Children .members [ci ].set .emitContentsV1 (false , stream , r ); err != nil {
158
158
return err
159
159
}
160
160
stream .WriteObjectEnd ()
@@ -169,7 +169,7 @@ func (s *Set) FromJSON(r io.Reader) error {
169
169
// The iterator pool is completely useless for memory management, grrr.
170
170
iter := jsoniter .Parse (jsoniter .ConfigCompatibleWithStandardLibrary , r , 4096 )
171
171
172
- found , _ := readIter_v1 (iter )
172
+ found , _ := readIterV1 (iter )
173
173
if found == nil {
174
174
* s = Set {}
175
175
} else {
@@ -180,7 +180,7 @@ func (s *Set) FromJSON(r io.Reader) error {
180
180
181
181
// returns true if this subtree is also (or only) a member of parent; s is nil
182
182
// if there are no further children.
183
- func readIter_v1 (iter * jsoniter.Iterator ) (children * Set , isMember bool ) {
183
+ func readIterV1 (iter * jsoniter.Iterator ) (children * Set , isMember bool ) {
184
184
iter .ReadMapCB (func (iter * jsoniter.Iterator , key string ) bool {
185
185
if key == "." {
186
186
isMember = true
@@ -199,7 +199,7 @@ func readIter_v1(iter *jsoniter.Iterator) (children *Set, isMember bool) {
199
199
iter .Skip ()
200
200
return true
201
201
}
202
- grandchildren , childIsMember := readIter_v1 (iter )
202
+ grandchildren , childIsMember := readIterV1 (iter )
203
203
if childIsMember {
204
204
if children == nil {
205
205
children = & Set {}
0 commit comments