internal

package
Version: v0.9.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 31, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeBool

func DecodeBool(value string) (interface{}, error)

func DecodeComplex128

func DecodeComplex128(value string) (interface{}, error)

func DecodeComplex64

func DecodeComplex64(value string) (interface{}, error)

func DecodeFloat32

func DecodeFloat32(value string) (interface{}, error)

func DecodeFloat64

func DecodeFloat64(value string) (interface{}, error)

func DecodeInt

func DecodeInt(value string) (interface{}, error)

func DecodeInt16

func DecodeInt16(value string) (interface{}, error)

func DecodeInt32

func DecodeInt32(value string) (interface{}, error)

func DecodeInt64

func DecodeInt64(value string) (interface{}, error)

func DecodeInt8

func DecodeInt8(value string) (interface{}, error)

func DecodeString

func DecodeString(value string) (interface{}, error)

func DecodeTime

func DecodeTime(value string) (interface{}, error)

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 DecodeUint(value string) (interface{}, error)

func DecodeUint16

func DecodeUint16(value string) (interface{}, error)

func DecodeUint32

func DecodeUint32(value string) (interface{}, error)

func DecodeUint64

func DecodeUint64(value string) (interface{}, error)

func DecodeUint8

func DecodeUint8(value string) (interface{}, error)

func DecoderOf

func DecoderOf(t reflect.Type) interface{}

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 ValueTypeDecoder interface {
	Decode(value string) (interface{}, error)
}

type ValueTypeDecoderFunc added in v0.7.0

type ValueTypeDecoderFunc func(string) (interface{}, error)

func (ValueTypeDecoderFunc) Decode added in v0.7.0

func (fn ValueTypeDecoderFunc) Decode(value string) (interface{}, error)

Decode calls fn(data).

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL