1
0
mirror of https://github.com/json-iterator/go.git synced 2025-06-24 23:16:47 +02:00

#68 string to int

This commit is contained in:
Tao Wen
2017-06-20 15:18:24 +08:00
parent 818ae1331a
commit 306b2896cf
3 changed files with 44 additions and 0 deletions

View File

@ -113,6 +113,10 @@ func ParseString(cfg *frozenConfig, input string) *Iterator {
return ParseBytes(cfg, []byte(input))
}
func (iter *Iterator) Config() *frozenConfig {
return iter.cfg
}
// Reset can reset an Iterator instance for another json buffer in io.Reader
func (iter *Iterator) Reset(reader io.Reader) *Iterator {
iter.reader = reader