Documentation ¶ Index ¶ func Marshal(v any) ([]byte, error) func Unmarshal(b []byte, v any) error type Decoder func NewDecoder(r io.Reader) *Decoder func (d *Decoder) Decode(v any) error type Encoder func NewEncoder(w io.Writer) *Encoder func (e *Encoder) Encode(v any) error Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Marshal ¶ func Marshal(v any) ([]byte, error) func Unmarshal ¶ func Unmarshal(b []byte, v any) error Types ¶ type Decoder ¶ type Decoder struct { // contains filtered or unexported fields } func NewDecoder ¶ func NewDecoder(r io.Reader) *Decoder func (*Decoder) Decode ¶ func (d *Decoder) Decode(v any) error type Encoder ¶ type Encoder struct { // contains filtered or unexported fields } func NewEncoder ¶ func NewEncoder(w io.Writer) *Encoder func (*Encoder) Encode ¶ func (e *Encoder) Encode(v any) error Source Files ¶ View all Source files decode.go encode.go utils.go Click to show internal directories. Click to hide internal directories.