1
0
mirror of https://github.com/json-iterator/go.git synced 2025-06-15 22:50:24 +02:00

remove skipWhitespaces

This commit is contained in:
Tao Wen
2017-01-05 09:16:41 +08:00
parent e7ec3988a6
commit 247a23a637
4 changed files with 1 additions and 24 deletions

14
feature_adapter.go Normal file
View File

@ -0,0 +1,14 @@
package jsoniter
import "io"
// adapt to json/encoding api
func Unmarshal(data []byte, v interface{}) error {
iter := ParseBytes(data)
iter.Read(v)
if iter.Error == io.EOF {
return nil
}
return iter.Error
}