Documentation ¶
Overview ¶
Custom types used by the encoding package.
Named types for encoding / decoding extensions.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BinData ¶
type BinData []byte
BinData is used to hold raw binary blob information for structs that need to support encoding to and from JSON / BSON. The json encoder will hexify this data for transport, while BSON will transform it to a BSON Binary primitive.
func (BinData) MarshalBSONValue ¶
Marshal bson value.
func (BinData) MarshalText ¶
Marshal to text value for json and others that implement this interface.
func (*BinData) UnmarshalBSONValue ¶
Unmarshal bson value.
func (*BinData) UnmarshalText ¶
UnMarshal from text value for json and others that implement this interface.
Click to show internal directories.
Click to hide internal directories.