Documentation
¶
Overview ¶
Package ecmascript preserves JavaScript JSON and string semantics at native boundaries.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CanonicalJSON ¶
CanonicalJSON validates input before applying JSON.parse/stringify semantics, preserving source key order and UTF-16 code units.
Types ¶
type String ¶
type String string
String carries JavaScript string code units. Lone UTF-16 surrogates use their WTF-8 encoding in the native string and their escaped code unit in JSON.
func (String) MarshalJSON ¶
func (*String) UnmarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.