1
0
mirror of https://github.com/json-iterator/go.git synced 2025-01-08 13:06:29 +02:00
This commit is contained in:
Tao Wen 2016-12-04 22:50:53 +08:00
parent d80d954345
commit cb86934dc8

9
jsoniter_adapter.go Normal file
View File

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