Documentation ¶
Index ¶
- func DecodeBool(value string) (interface{}, error)
- func DecodeComplex128(value string) (interface{}, error)
- func DecodeComplex64(value string) (interface{}, error)
- func DecodeFloat32(value string) (interface{}, error)
- func DecodeFloat64(value string) (interface{}, error)
- func DecodeInt(value string) (interface{}, error)
- func DecodeInt16(value string) (interface{}, error)
- func DecodeInt32(value string) (interface{}, error)
- func DecodeInt64(value string) (interface{}, error)
- func DecodeInt8(value string) (interface{}, error)
- func DecodeString(value string) (interface{}, error)
- func DecodeTime(value string) (interface{}, error)
- func DecodeUint(value string) (interface{}, error)
- func DecodeUint16(value string) (interface{}, error)
- func DecodeUint32(value string) (interface{}, error)
- func DecodeUint64(value string) (interface{}, error)
- func DecodeUint8(value string) (interface{}, error)
- func DecoderOf(t reflect.Type) interface{}
- type FileTypeDecoder
- type FileTypeDecoderFunc
- type ValueTypeDecoder
- type ValueTypeDecoderFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeBool ¶
func DecodeComplex128 ¶
func DecodeComplex64 ¶
func DecodeFloat32 ¶
func DecodeFloat64 ¶
func DecodeInt16 ¶
func DecodeInt32 ¶
func DecodeInt64 ¶
func DecodeInt8 ¶
func DecodeString ¶
func DecodeTime ¶
DecodeTime parses data bytes as time.Time in UTC timezone. Supported formats of the data bytes are: 1. RFC3339Nano string, e.g. "2006-01-02T15:04:05-07:00" 2. Unix timestamp, e.g. "1136239445"
func DecodeUint ¶
func DecodeUint16 ¶
func DecodeUint32 ¶
func DecodeUint64 ¶
func DecodeUint8 ¶
Types ¶
type FileTypeDecoder ¶ added in v0.7.0
type FileTypeDecoder interface {
Decode(file *multipart.FileHeader) (interface{}, error)
}
type FileTypeDecoderFunc ¶ added in v0.7.0
type FileTypeDecoderFunc func(*multipart.FileHeader) (interface{}, error)
func (FileTypeDecoderFunc) Decode ¶ added in v0.7.0
func (fn FileTypeDecoderFunc) Decode(file *multipart.FileHeader) (interface{}, error)
type ValueTypeDecoder ¶ added in v0.7.0
type ValueTypeDecoderFunc ¶ added in v0.7.0
func (ValueTypeDecoderFunc) Decode ¶ added in v0.7.0
func (fn ValueTypeDecoderFunc) Decode(value string) (interface{}, error)
Decode calls fn(data).
Click to show internal directories.
Click to hide internal directories.