Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Unmarshal = json.Unmarshal Marshal = json.Marshal MarshalIndent = json.MarshalIndent UnmarshalString = func(buf string, val interface{}) error { return json.Unmarshal(toBytes(buf), val) } MarshalString = func(val interface{}) (string, error) { bs, err := json.Marshal(val) if err != nil { return "", err } return toString(bs), nil } NewEncoder = func(w io.Writer) JsonEncoder { return json.NewEncoder(w) } NewDecoder = func(r io.Reader) JsonDecoder { return json.NewDecoder(r) } )
Functions ¶
This section is empty.
Types ¶
type JsonDecoder ¶ added in v0.7.8
Click to show internal directories.
Click to hide internal directories.