Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterSerializer ¶
func RegisterSerializer(contentType string, s Serializer)
RegisterSerializer adds a new serializer
Types ¶
type Serializer ¶
type Serializer interface { Serialize(interface{}) ([]byte, error) Deserialize([]byte, interface{}) error }
Serializer converst he format
func NewSerializer ¶
func NewSerializer(contentType string) (Serializer, error)
NewSerializer returns the serializer from the given content type
Click to show internal directories.
Click to hide internal directories.