1
0
mirror of https://github.com/json-iterator/go.git synced 2024-11-24 08:22:14 +02:00
json-iterator/jsoniter_adapter.go

10 lines
161 B
Go
Raw Normal View History

2016-12-04 16:50:53 +02:00
package jsoniter
// adapt to json/encoding api
func Unmarshal(data []byte, v interface{}) error {
iter := ParseBytes(data)
iter.Read(v)
return iter.Error
}