castx

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2021 License: MIT Imports: 6 Imported by: 15

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ToBool

func ToBool(arg0 interface{}) bool

func ToBoolE

func ToBoolE(arg0 interface{}) (bool, error)

func ToDataSize

func ToDataSize(arg0 interface{}) int64

func ToDataSizeE

func ToDataSizeE(arg0 interface{}) (int64, error)

func ToDuration

func ToDuration(arg0 interface{}) time.Duration

func ToDurationE

func ToDurationE(arg0 interface{}) (time.Duration, error)

func ToFloat32

func ToFloat32(arg0 interface{}, defaultValue ...float32) float32

func ToFloat32E

func ToFloat32E(arg0 interface{}) (float32, error)

func ToFloat64

func ToFloat64(arg0 interface{}, defaultValue ...float64) float64

func ToFloat64E

func ToFloat64E(arg0 interface{}) (float64, error)

func ToInt

func ToInt(arg0 interface{}, defaultValue ...int) int

func ToInt16

func ToInt16(arg0 interface{}, defaultValue ...int16) int16

func ToInt16E

func ToInt16E(arg0 interface{}) (int16, error)

func ToInt32

func ToInt32(arg0 interface{}, defaultValue ...int32) int32

func ToInt32E

func ToInt32E(arg0 interface{}) (int32, error)

func ToInt64

func ToInt64(arg0 interface{}, defaultValue ...int64) int64

func ToInt64E

func ToInt64E(arg0 interface{}) (int64, error)

func ToInt8

func ToInt8(arg0 interface{}, defaultValue ...int8) int8

func ToInt8E

func ToInt8E(arg0 interface{}) (int8, error)

func ToIntE

func ToIntE(arg0 interface{}) (int, error)

func ToIntSlice

func ToIntSlice(arg0 interface{}) []int

func ToIntSliceE

func ToIntSliceE(arg0 interface{}) ([]int, error)

func ToMapSlice

func ToMapSlice(arg0 interface{}) []map[string]interface{}

func ToMapSliceE

func ToMapSliceE(arg0 interface{}) ([]map[string]interface{}, error)

func ToSlice

func ToSlice(arg0 interface{}) []interface{}

func ToSliceE

func ToSliceE(arg0 interface{}) ([]interface{}, error)

func ToString

func ToString(arg0 interface{}) string

func ToStringE

func ToStringE(arg0 interface{}) (string, error)

func ToStringMap

func ToStringMap(arg0 interface{}) map[string]interface{}

func ToStringMapE

func ToStringMapE(arg0 interface{}) (map[string]interface{}, error)

func ToStringMapString

func ToStringMapString(arg0 interface{}) map[string]string

func ToStringMapStringE

func ToStringMapStringE(arg0 interface{}) (map[string]string, error)

func ToStringSlice

func ToStringSlice(arg0 interface{}) []string

func ToStringSliceE

func ToStringSliceE(arg0 interface{}) ([]string, error)

func ToUint

func ToUint(arg0 interface{}, defaultValue ...uint) uint

func ToUint16

func ToUint16(arg0 interface{}, defaultValue ...uint16) uint16

func ToUint16E

func ToUint16E(arg0 interface{}) (uint16, error)

func ToUint32

func ToUint32(arg0 interface{}, defaultValue ...uint32) uint32

func ToUint32E

func ToUint32E(arg0 interface{}) (uint32, error)

func ToUint64

func ToUint64(arg0 interface{}, defaultValue ...uint64) uint64

func ToUint64E

func ToUint64E(arg0 interface{}) (uint64, error)

func ToUint8

func ToUint8(arg0 interface{}, defaultValue ...uint8) uint8

func ToUint8E

func ToUint8E(arg0 interface{}) (uint8, error)

func ToUintE

func ToUintE(arg0 interface{}) (uint, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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