From c160e565ba86b79b0eafc2dd5fb70ca142ada6ef Mon Sep 17 00:00:00 2001 From: Adam Scarr Date: Fri, 11 Aug 2017 00:10:58 +1000 Subject: Fix unexported Unmarshal --- json/json.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'json/json.go') diff --git a/json/json.go b/json/json.go index 0707f0a..172099c 100644 --- a/json/json.go +++ b/json/json.go @@ -36,6 +36,7 @@ func init() { _value = Any(_null, _true, _false, _string, _number, _array, _object) } -func unmarshal(input string) (interface{}, error) { +// Unmarshall json string into map[string]interface{} or []interface{} +func Unmarshal(input string) (interface{}, error) { return Run(_value, input, ASCIIWhitespace) } -- cgit v1.2.3