Documentation ¶ Index ¶ Variables type Codec func (Codec) Marshal(v any) ([]byte, error) func (Codec) NewDecoder(r io.Reader) *json.Decoder func (Codec) NewEncoder(w io.Writer) *json.Encoder func (Codec) Unmarshal(data []byte, v any) error Constants ¶ This section is empty. Variables ¶ View Source var DefaultCodec = Codec{} Functions ¶ This section is empty. Types ¶ type Codec ¶ type Codec struct{} Codec implements https://pkg.go.dev/encoding/json func (Codec) Marshal ¶ func (Codec) Marshal(v any) ([]byte, error) func (Codec) NewDecoder ¶ func (Codec) NewDecoder(r io.Reader) *json.Decoder func (Codec) NewEncoder ¶ func (Codec) NewEncoder(w io.Writer) *json.Encoder func (Codec) Unmarshal ¶ func (Codec) Unmarshal(data []byte, v any) error Source Files ¶ View all Source files codec.go Click to show internal directories. Click to hide internal directories.