Documentation ¶ Index ¶ Variables type Codec 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} ) Functions ¶ This section is empty. Types ¶ type Codec ¶ type Codec struct { Marshal func(interface{}) ([]byte, error) Unmarshal func([]byte, interface{}) error } Codec a codec Source Files ¶ View all Source files codec.go Click to show internal directories. Click to hide internal directories.