Documentation ¶
Index ¶
- func Test()
- type Packed
- func (p *Packed) Decode(data []byte, input interface{}) error
- func (p *Packed) DecodeToInterface(data []byte) interface{}
- func (p *Packed) DecodeToValue(data []byte, value reflect.Value) error
- func (p *Packed) Encode(data interface{}) ([]byte, error)
- func (p *Packed) Minus() []byte
- func (p *Packed) Plus() []byte
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Packed ¶
func New ¶
func New(typeInput interface{}) *Packed
New creates new packed instance, could be passed interface or reflectValue as packing schema
func (*Packed) DecodeToInterface ¶
DecodeToInterface will decode field to interface
func (*Packed) DecodeToValue ¶
Click to show internal directories.
Click to hide internal directories.