Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Decoder ¶
type Decoder interface {
Decode(x interface{}) error
}
Decoder represents a decoding method. Examples include gob.Decoder and json.Decoder.
func NewDecoder ¶
NewDecoder returns a new Decoder that can decode an encoding stream produced by an encoder created with NewEncoder. Any File data gets written to disk rather than being stored in memory. When a File is decoded, its file name will have changed to the name of a local temporary file holding the same data.
type Encoder ¶
type Encoder interface { // Encode writes an encoded version of x. Encode(x interface{}) error }
Encoder represents a encoding method. Examples include gob.Encoder and json.Encoder.
func NewEncoder ¶
NewEncoder returns a new Encoder that will encode any *File instance that it finds within values passed to Encode. The resulting encoded stream must be decoded with a decoder created by NewDecoder.