Versions in this module Expand all Collapse all v1 v1.8.1 Mar 10, 2020 Changes in this version + type EncodeCodec string + type Encoder interface + Marshal func(v interface{}) ([]byte, error) + Unmarshal func(data []byte, v interface{}) error + func DefaultJSONEncoder() Encoder + func DefaultYAMLEncoder() Encoder + type JSONEncoder struct + func (encoder JSONEncoder) Marshal(v interface{}) ([]byte, error) + func (encoder JSONEncoder) Unmarshal(data []byte, v interface{}) error + type YAMLEncoder struct + func (encoder YAMLEncoder) Marshal(v interface{}) ([]byte, error) + func (encoder YAMLEncoder) Unmarshal(data []byte, v interface{}) error