Documentation
¶
Index ¶
Constants ¶
View Source
const ( AUTO = 0 STRING = 83 // S BYTES = 88 // X JSON = 74 // J BSON = 66 // B GenCode = 71 // G )
define types
Variables ¶
This section is empty.
Functions ¶
func LoadAsFormat ¶
LoadAsFormat loads a data blob into the interface using the specified format.
Types ¶
type GenCodeCompatible ¶ added in v0.3.0
type GenCodeCompatible interface {
// GenCodeMarshal gencode marshalls the struct into the given byte array, or a new one if its too small.
GenCodeMarshal(buf []byte) ([]byte, error)
// GenCodeUnmarshal gencode unmarshalls the struct and returns the bytes read.
GenCodeUnmarshal(buf []byte) (uint64, error)
}
GenCodeCompatible is an interface to identify and use gencode compatible structs.
Click to show internal directories.
Click to hide internal directories.