Documentation ¶
Index ¶
Constants ¶
View Source
const (
// default max length of a slice being marshalled by Marshal(). Should be <= math.MaxUint32.
DefaultMaxSliceLength = 256 * 1024
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Codec ¶
Codec marshals and unmarshals
func New ¶
New returns a new, concurrency-safe codec; it allow to specify both tagNames and maxSlicelenght
func NewCustomMaxLength ¶ added in v1.7.10
NewCustomMaxLength is a convenience constructor; it returns a new codec with custom max length and default tags
func NewDefault ¶
NewDefault is a convenience constructor; it returns a new codec with reasonable default values
Click to show internal directories.
Click to hide internal directories.