Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Decoder ¶
type Decoder interface { // Decode the given byte in to the given out type. // Example: // // var out MyType // err := decoder.Decode(data, &out) Decode(in []byte, out interface{}) error }
Decoder interface ease the use of decoders like encoding/gob...
type DecodingError ¶
func NewDecodingError ¶
func NewDecodingError(err error) DecodingError
type Encoder ¶
type Encoder interface { // Encode in to []byte. // Example: // // var in MyTime // bytes, err := encoder.Encode(in) Encode(in interface{}) ([]byte, error) }
Encoder interface ease the use of encoders like encoding/gob...
type EncodingError ¶
func NewEncodingError ¶
func NewEncodingError(err error) EncodingError
Click to show internal directories.
Click to hide internal directories.