@@ -24,7 +24,7 @@ func (iter *Iterator) ReadObject() (ret string) {
2424		if  c  ==  '}'  {
2525			return  ""  // end of object 
2626		}
27- 		iter .ReportError ("ReadObject" , `expect " after {, but found `   +   string ([]byte {c }))
27+ 		iter .ReportError ("ReadObject" , `expect " after {, but found ` + string ([]byte {c }))
2828		return 
2929	case  ',' :
3030		return  string (iter .readObjectFieldAsBytes ())
@@ -105,14 +105,14 @@ func (iter *Iterator) ReadObjectCB(callback func(*Iterator, string) bool) bool {
105105		if  c  ==  '}'  {
106106			return  true 
107107		}
108- 		iter .ReportError ("ReadObjectCB" , `expect " after }, but found `   +   string ([]byte {c }))
108+ 		iter .ReportError ("ReadObjectCB" , `expect " after }, but found ` + string ([]byte {c }))
109109		return  false 
110110	}
111111	if  c  ==  'n'  {
112112		iter .skipThreeBytes ('u' , 'l' , 'l' )
113113		return  true  // null 
114114	}
115- 	iter .ReportError ("ReadObjectCB" , `expect { or n, but found `   +   string ([]byte {c }))
115+ 	iter .ReportError ("ReadObjectCB" , `expect { or n, but found ` + string ([]byte {c }))
116116	return  false 
117117}
118118
@@ -125,7 +125,7 @@ func (iter *Iterator) ReadMapCB(callback func(*Iterator, string) bool) bool {
125125			iter .unreadByte ()
126126			field  :=  iter .ReadString ()
127127			if  iter .nextToken () !=  ':'  {
128- 				iter .ReportError ("ReadMapCB" , "expect : after object field, but found "   +   string ([]byte {c }))
128+ 				iter .ReportError ("ReadMapCB" , "expect : after object field, but found " + string ([]byte {c }))
129129				return  false 
130130			}
131131			if  ! callback (iter , field ) {
@@ -135,7 +135,7 @@ func (iter *Iterator) ReadMapCB(callback func(*Iterator, string) bool) bool {
135135			for  c  ==  ','  {
136136				field  =  iter .ReadString ()
137137				if  iter .nextToken () !=  ':'  {
138- 					iter .ReportError ("ReadMapCB" , "expect : after object field, but found "   +   string ([]byte {c }))
138+ 					iter .ReportError ("ReadMapCB" , "expect : after object field, but found " + string ([]byte {c }))
139139					return  false 
140140				}
141141				if  ! callback (iter , field ) {
@@ -152,14 +152,14 @@ func (iter *Iterator) ReadMapCB(callback func(*Iterator, string) bool) bool {
152152		if  c  ==  '}'  {
153153			return  true 
154154		}
155- 		iter .ReportError ("ReadMapCB" , `expect " after }, but found `   +   string ([]byte {c }))
155+ 		iter .ReportError ("ReadMapCB" , `expect " after }, but found ` + string ([]byte {c }))
156156		return  false 
157157	}
158158	if  c  ==  'n'  {
159159		iter .skipThreeBytes ('u' , 'l' , 'l' )
160160		return  true  // null 
161161	}
162- 	iter .ReportError ("ReadMapCB" , `expect { or n, but found `   +   string ([]byte {c }))
162+ 	iter .ReportError ("ReadMapCB" , `expect { or n, but found ` + string ([]byte {c }))
163163	return  false 
164164}
165165
@@ -176,7 +176,7 @@ func (iter *Iterator) readObjectStart() bool {
176176		iter .skipThreeBytes ('u' , 'l' , 'l' )
177177		return  false 
178178	}
179- 	iter .ReportError ("readObjectStart" , "expect { or n, but found "   +   string ([]byte {c }))
179+ 	iter .ReportError ("readObjectStart" , "expect { or n, but found " + string ([]byte {c }))
180180	return  false 
181181}
182182
@@ -192,7 +192,7 @@ func (iter *Iterator) readObjectFieldAsBytes() (ret []byte) {
192192		}
193193	}
194194	if  iter .buf [iter .head ] !=  ':'  {
195- 		iter .ReportError ("readObjectFieldAsBytes" , "expect : after object field, but found "   +   string ([]byte {iter .buf [iter .head ]}))
195+ 		iter .ReportError ("readObjectFieldAsBytes" , "expect : after object field, but found " + string ([]byte {iter .buf [iter .head ]}))
196196		return 
197197	}
198198	iter .head ++ 
0 commit comments