package
0.0.0-20210827224422-e5fa29d95e8b
Repository: https://github.com/attic-labs/noms.git
Documentation: pkg.go.dev
# Functions
Marshal converts a Go value to a Noms value.
MarshalOpt is like Marshal but provides additional options.
MarshalType computes a Noms type from a Go type
The rules for MarshalType is the same as for Marshal, except for omitempty which leads to an optional field since it depends on the runtime value and can lead to the property not being present.
MarshalTypeOpt is like MarshalType but with additional options.
MustMarshal marshals a Go value to a Noms value using the same rules as Marshal().
MustMarshalOpt is like MustMarshal, but with additional options.
MustMarshalType computes a Noms type from a Go type or panics if there is an error.
MustMarshalTypeOpt is like MustMarshalType but provides additional options.
Unmarshals a Noms value into a Go value using the same rules as Unmarshal().
MustUnmarshalOpt is like MustUnmarshal but with additional options.
Unmarshal converts a Noms value into a Go value.
UnmarshalOpt is like Unmarshal but provides additional options.
# Structs
InvalidTagError is returned by encode and decode when the struct field tag is invalid.
InvalidUnmarshalError describes an invalid argument passed to Unmarshal.
UnmarshalTypeMismatchError describes a Noms value that was not appropriate for a value of a specific Go type.
UnsupportedTypeError is returned by encode when attempting to encode a type that isn't supported.
# Interfaces
Marshaler is an interface types can implement to provide their own encoding.
StructNameMarshaler is an interface that can be implemented to define the name of a Noms struct.
TypeMarshaler is an interface types can implement to provide their own encoding of type.
Unmarshaler is an interface types can implement to provide their own decoding.