Documentation
¶
Overview ¶
Package codec implements codecs for marshaling/unmarshaling of native Go types into byte slices
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Gob is a Codec that uses the gob package Gob = Codec{gobMarshal, gobUnmarshal} // JSON is a Codec that uses the json package. JSON = Codec{json.Marshal, json.Unmarshal} // XML is a codec that uses the xml pacakge XML = Codec{xml.Marshal, xml.Unmarshal} // BSON is a codec that used the labix.org/v2/mgo/bson pacakge BSON = Codec{bson.Marshal, bson.Unmarshal} // ErrTestCodec is a codec that returns errors, used for testing other packages. ErrTestCodec = Codec{testMarshalErr, testUnmarshalErr} )
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.