1
0
mirror of https://github.com/json-iterator/go.git synced 2025-03-26 21:12:40 +02:00

link test

This commit is contained in:
nifei 2017-06-05 19:38:34 +08:00
parent 9a43fe6468
commit 10c1506f87

@ -8,6 +8,9 @@ import (
// Unmarshal adapts to json/encoding Unmarshal API
//
// Unmarshal parses the JSON-encoded data and stores the result in the value pointed to by v.
// <l>https://godoc.org/encoding/json#Unmarshal</l>
// linktest: https://godoc.org/encoding/json#Unmarshal
// <a href="https://godoc.org/encoding/json#Unmarshal">link test</a>
func Unmarshal(data []byte, v interface{}) error {
data = data[:lastNotSpacePos(data)]
iter := ParseBytes(data)