Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ErrorTextDecoderNoString = errors.New("v is not a string")
var ErrorTextDecoderNoValidPointer = errors.New("v is not a valid pointer")
Functions ¶
This section is empty.
Types ¶
type Decoder ¶
Decoder purpose is to provide a common interface wraping around decoder libraries so that they can easily be passed as arguments values to be executed by other methods.
type DecoderFunc ¶
DecoderFunc type is an adapter to allow the use of ordinary functions as Decoders. If f is a function with the appropriate signature, DecoderFunc(f) is a Decoder that calls f.
type Encoder ¶
Encoder purpose is to provide a common interface wraping around encoder libraries so that they can easily be passed as arguments values to be executed by other methods.
type EncoderDecoder ¶
EncoderDecoder is the interface that groups the Encode and Decode methods.
type EncoderFunc ¶
EncoderFunc type is an adapter to allow the use of ordinary functions as Encoders. If f is a function with the appropriate signature, EncoderFunc(f) is a Encoder that calls f.
type JSONDecoder ¶
type JSONDecoder struct{}
JSONDecoder implements Decoder interface to decode JSON format
type JSONEncoder ¶
type JSONEncoder struct{}
JSONEncoder implements Encoder interface to encode JSON format
type JSONEncoderDecoder ¶
type JSONEncoderDecoder struct { JSONEncoder JSONDecoder }
JSONEncoderDecoder is a JSON EncoderDecoder implementation composed by embedding JSONEncoder and JSONDecoder types
type TextDecoder ¶
type TextDecoder struct{}
TextDecoder implements Decoder to encode on text format
type TextEncoder ¶ added in v0.8.6
type TextEncoder struct{}
TextEncoder implements Encoder to encode on text format
type XMLEncoderDecoder ¶
type XMLEncoderDecoder struct { XMLEncoder XMLDecoder }
XMLEncoderDecoder is a xml EncoderDecoder implementation composed by embedding XMLEncoder and XMLDecoder