Documentation
¶
Overview ¶
Package encode provides a flexible way to encode and decode Go objects.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Encoder ¶
type Encoder interface {
//Encode takes a Go object and converts it into bytes
Encode(input interface{}) ([]byte, error)
// Decode takes an input of bytes and decodes it into Go object.
Decode(input []byte, output interface{}) error
}
Encoder interface allows to switch between different encoding types.
Click to show internal directories.
Click to hide internal directories.