Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DecMode, _ = cbor.DecOptions{}.DecMode()
DecMode is the default DecMode to use when creating a new cbor Decoder
View Source
var EncMode = func() cbor.EncMode { options := cbor.CoreDetEncOptions() options.Time = cbor.TimeRFC3339Nano encMode, err := options.EncMode() if err != nil { panic(fmt.Errorf("could not extract encoding mode: %w", err)) } return encMode }()
EncMode is the default EncMode to use when creating a new cbor Encoder
Functions ¶
This section is empty.
Types ¶
type Codec ¶
type Codec struct {
// contains filtered or unexported fields
}
type Marshaler ¶
type Marshaler struct{}
func NewMarshaler ¶
func NewMarshaler() *Marshaler
func (*Marshaler) MustMarshal ¶
func (*Marshaler) MustUnmarshal ¶
type Option ¶
type Option func(*Codec)
func WithDecMode ¶
WithDecMode sets the DecMode to use when creating a new cbor Decoder.
func WithEncMode ¶
WithEncMode sets the EncMode to use when creating a new cbor Encoder.
Click to show internal directories.
Click to hide internal directories.