Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var NopEncoding = &Encoding{ Marshal: func(v interface{}) ([]byte, error) { return nil, ErrEncodingUnavailable }, Unmarshal: func(data []byte, v interface{}) error { return ErrEncodingUnavailable }, }
Functions ¶
This section is empty.
Types ¶
type Encoding ¶
type Encoding struct { Marshal func(v interface{}) ([]byte, error) Unmarshal func(data []byte, v interface{}) error }
func (*Encoding) MarshalData ¶
func (*Encoding) UnmarshalData ¶
Click to show internal directories.
Click to hide internal directories.