Documentation
¶
Overview ¶
Package jsvalue makes native rendering's JavaScript values straight from Go values: what JSON.parse would make of the JSON internal/jsonenc writes for them, value for value and in the same key order, without writing or parsing the JSON. Page data reaches components this way.
It follows jsonenc's rules: field names, omitempty and omitzero, embedded structs, nil slices as [], []byte as base64, sorted map keys. Values that encode themselves (json.Marshaler, encoding.TextMarshaler) are encoded by jsonenc and parsed, as are the rare struct tag options jsonenc leaves to encoding/json.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.