flexon

package module
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	AnyToBool   = DefaultAnyToBool
	AnyToInt    = DefaultAnyToInt
	AnyToUint   = DefaultAnyToUint
	AnyToFloat  = DefaultAnyToFloat
	AnyToString = DefaultAnyToString
)

Functions

func DefaultAnyToBool

func DefaultAnyToBool(any jsoniter.Any) (bool, error)

func DefaultAnyToFloat

func DefaultAnyToFloat(any jsoniter.Any) (float64, error)

func DefaultAnyToInt

func DefaultAnyToInt(any jsoniter.Any) (int64, error)

func DefaultAnyToString

func DefaultAnyToString(any jsoniter.Any) (string, error)

func DefaultAnyToUint

func DefaultAnyToUint(any jsoniter.Any) (uint64, error)

Types

type Bool

type Bool bool

func (*Bool) UnmarshalJSON

func (b *Bool) UnmarshalJSON(data []byte) error

type Float32

type Float32 float32

func (*Float32) UnmarshalJSON

func (f *Float32) UnmarshalJSON(data []byte) error

type Float64

type Float64 float64

func (*Float64) UnmarshalJSON

func (f *Float64) UnmarshalJSON(data []byte) error

type Int

type Int int

func (*Int) UnmarshalJSON

func (i *Int) UnmarshalJSON(data []byte) error

type Int16

type Int16 int16

func (*Int16) UnmarshalJSON

func (i *Int16) UnmarshalJSON(data []byte) error

type Int32

type Int32 int32

func (*Int32) UnmarshalJSON

func (i *Int32) UnmarshalJSON(data []byte) error

type Int64

type Int64 int64

func (*Int64) UnmarshalJSON

func (i *Int64) UnmarshalJSON(data []byte) error

type Int8

type Int8 int8

func (*Int8) UnmarshalJSON

func (i *Int8) UnmarshalJSON(data []byte) error

type String

type String string

func (*String) UnmarshalJSON

func (s *String) UnmarshalJSON(data []byte) error

type Uint

type Uint uint

func (*Uint) UnmarshalJSON

func (u *Uint) UnmarshalJSON(data []byte) error

type Uint16

type Uint16 uint16

func (*Uint16) UnmarshalJSON

func (u *Uint16) UnmarshalJSON(data []byte) error

type Uint32

type Uint32 uint32

func (*Uint32) UnmarshalJSON

func (u *Uint32) UnmarshalJSON(data []byte) error

type Uint64

type Uint64 uint64

func (*Uint64) UnmarshalJSON

func (u *Uint64) UnmarshalJSON(data []byte) error

type Uint8

type Uint8 uint8

func (*Uint8) UnmarshalJSON

func (u *Uint8) UnmarshalJSON(data []byte) error

Jump to

Keyboard shortcuts

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