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 any) error { return Unmarshal(string2Bytes(buf), val) } MarshalString = func(val any) (string, error) { bs, err := Marshal(val) if err != nil { return "", err } return bytes2String(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.10.0
Click to show internal directories.
Click to hide internal directories.