Documentation
¶
Overview ¶
Package jsonkit is how anfra reads and writes JSON: encoding/json/v2 with one set of options, used by every package, so a value is encoded the same way whichever door it leaves by. Don't import encoding/json or encoding/json/v2 elsewhere; depguard refuses it. See docs/designs/json.md.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MarshalEncode ¶
MarshalEncode writes v to enc, with enc's options: for a MarshalJSONTo method, so the options of whatever is encoding it reach inside.
func MarshalIndent ¶
MarshalIndent is v as JSON, indented by two spaces, for a file people read.
func UnmarshalRead ¶
UnmarshalRead reads the one JSON value in r, to its end, into v.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.