Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PopulateStructFromCBOR ¶
func PopulateStructFromJSON ¶
func SerializeStructToCBOR ¶
func SerializeStructToJSON ¶
Types ¶
type TypeAndValue ¶
type TypeAndValue struct { Type string `json:"type"` Value json.RawMessage `json:"value"` }
TypeAndValue stores a JSON object with two attributes: a string "type" and a generic "value" (string) defined by type. This type is used in a few places to implement the choice types that CBOR handles using tags.
func (*TypeAndValue) UnmarshalJSON ¶
func (o *TypeAndValue) UnmarshalJSON(data []byte) error
Click to show internal directories.
Click to hide internal directories.