mirror of
https://github.com/json-iterator/go.git
synced 2024-11-24 08:22:14 +02:00
10 lines
161 B
Go
10 lines
161 B
Go
|
package jsoniter
|
||
|
|
||
|
// adapt to json/encoding api
|
||
|
|
||
|
func Unmarshal(data []byte, v interface{}) error {
|
||
|
iter := ParseBytes(data)
|
||
|
iter.Read(v)
|
||
|
return iter.Error
|
||
|
}
|