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:
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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user