Documentation ¶
Overview ¶
Package std represents the interface codec implementation.
Index ¶
- type Codec
- func (c *Codec) ConverterRegistrationForDecodeOutURLValues(value interface{}, converterFunc func(string) reflect.Value)
- func (c *Codec) Decode(dst interface{}, src io.Reader) error
- func (c *Codec) DecodeOutURLValues(dst interface{}, src url.Values) error
- func (c *Codec) DecodeStringBase64(str string) (string, error)
- func (c *Codec) DecodeWithDisallowUnknownFields(dst interface{}, src io.Reader) error
- func (c *Codec) EncodeStringToBase64(str string) string
- func (c *Codec) Marshal(v interface{}) ([]byte, error)
- func (c *Codec) MarshalIndent(v interface{}, prefix, indent string) ([]byte, error)
- func (c *Codec) Unmarshal(data []byte, v interface{}) error
- func (c *Codec) UnmarshalWithDisallowUnknownFields(data []byte, v interface{}) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Codec ¶
type Codec struct {
// contains filtered or unexported fields
}
Codec predetermines the consistency of the interfaces codec implementation.
func (*Codec) ConverterRegistrationForDecodeOutURLValues ¶
func (c *Codec) ConverterRegistrationForDecodeOutURLValues(value interface{}, converterFunc func(string) reflect.Value)
ConverterRegistrationForDecodeOutURLValues registers a converter for decode to url.Values.
func (*Codec) DecodeOutURLValues ¶
DecodeOutURLValues decodes dst to url.Values.
func (*Codec) DecodeStringBase64 ¶
DecodeStringBase64 decodes a string the base-64.
func (*Codec) DecodeWithDisallowUnknownFields ¶
DecodeWithDisallowUnknownFields decode io.Reader to dst with disallow unknown fields.
func (*Codec) EncodeStringToBase64 ¶
EncodeStringToBase64 encodes a string in base-64.
func (*Codec) MarshalIndent ¶
MarshalIndent interface value marshalling with indent into byte slice.
func (*Codec) UnmarshalWithDisallowUnknownFields ¶
UnmarshalWithDisallowUnknownFields unmarshalling byte slice value (with disallow unknown fields) into interface value.