Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var FormatMapping = map[FormatName]Format{ Gob: &gobFormat{}, JSON: &jsonFormat{}, XML: &xmlFormat{}, YAML: &yamlFormat{}, Protobuf: &protoFormat{}, MessagePack: &msgPackFormat{}, }
Functions ¶
This section is empty.
Types ¶
type Format ¶
type Format interface { Serialize(value entity.AnimalShelter) ([]byte, error) Deserialize(value []byte, result *entity.AnimalShelter) error }
type FormatName ¶
type FormatName string
const ( Gob FormatName = "gob" // "native" format JSON FormatName = "json" XML FormatName = "xml" Protobuf FormatName = "protobuf" YAML FormatName = "yaml" MessagePack FormatName = "message_pack" )
Click to show internal directories.
Click to hide internal directories.