package
0.89.0
Repository: https://github.com/polydawn/refmt.git
Documentation: pkg.go.dev

# Packages

commonatlases is a package full of `atlas.Entry` definions for common types in the standard library.

# Functions

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Takes a wildcard object which must be `func (live T1) (serialable T2, error)` and returns a MarshalTransformFunc and the typeinfo of T2.
Takes a wildcard object which must be `func (serialable T1) (live T2, error)` and returns a UnmarshalTransformFunc and the typeinfo of T1.
No description provided by the author

# Constants

the default mode -- for structs, this is the source-order of the fields; for maps, it's identify to "strings" sort mode.
"Canonical" as proposed by rfc7049 § 3.9 (shorter byte sequences sort to top).
lexical sort by strings.

# Structs

No description provided by the author
The AtlasEntry is a declarative roadmap of what we should do for marshal and unmarshal of a single object, keyed by type.
Intermediate step in building an AtlasEntry: use `BuildEntry` to get one of these to start with, then call one of the methods on this type to get a specialized builder which has the methods relevant for setting up that specific kind of mapping.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Error type raised when initializing an Atlas, and field entries do not resolve against the type.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Type aliases

A type to enumerate key sorting modes.
No description provided by the author
No description provided by the author
StructMapEntry_byFieldRoute sorts field by FieldRoute sequence (e.g., roughly source declaration order within each type).
StructMapEntry_byName sorts field by name, breaking ties with depth, then breaking ties with "name came from tag", then breaking ties with FieldRoute sequence.
StructMapEntry_RFC7049 sorts fields as specified in RFC7049,.
No description provided by the author