Documentation ¶
Overview ¶
Package crep ("see-rep") contains a utility for producing a Canonical REPresentation of a value type and for comparing objects using a fuzzy equivalence relationship.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Value ¶
type Value any
A Value is one of:
- nil
- string, possibly numeric in nature
- bool
- []Value
- map[string]Value
func Canonical ¶
Canonical returns a canonical, JSON-esque representation of an input value. The values returned by this function will, in general, agree with the changefeed encoding for that value type. Furthermore, numbers will be converted to a string representation, so that they may be presented to the script runtime without loss of precision.
Click to show internal directories.
Click to hide internal directories.