Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DefaultEncoder ¶
type DefaultEncoder struct { }
DefaultEncoder implementation for EncodedConn. This encoder will leave []byte and string untouched, but will attempt to turn numbers into appropriate strings that can be decoded. It will also propely encoded and decode bools. If will encode a struct, but if you want to properly handle structures you should use JsonEncoder.
type GobEncoder ¶
type GobEncoder struct { }
GobEncoder is a Go specific GOB Encoder implementation for EncodedConn. This encoder will use the builtin encoding/gob to Marshal and Unmarshal most types, including structs.
type JsonEncoder ¶
type JsonEncoder struct { }
JsonEncoder is a JSON Encoder implementation for EncodedConn. This encoder will use the builtin encoding/json to Marshal and Unmarshal most types, including structs.