types

package
v0.0.0-...-17a5fe9 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bool

func Bool(value interface{}) bool

func Byte

func Byte(value interface{}) byte

func Compare

func Compare(value1 interface{}, value2 interface{}) bool

func Float32

func Float32(value interface{}) float32

func Float64

func Float64(value interface{}) float64

func Int

func Int(value interface{}) int

func Int8

func Int8(value interface{}) int8

func Int16

func Int16(value interface{}) int16

func Int32

func Int32(value interface{}) int32

func Int32Value

func Int32Value(value interface{}) (int32, error)

func Int64

func Int64(value interface{}) int64

func IsFloat

func IsFloat(value interface{}) bool

判断是否为浮点型数字

func IsInteger

func IsInteger(value interface{}) bool

判断是否为整形数字

func IsNil

func IsNil(value interface{}) bool

判断是否为nil

func IsNumber

func IsNumber(value interface{}) bool

判断是否为数字

func Slice

func Slice(fromSlice interface{}, toSliceType reflect.Type) (interface{}, error)

转换Slice类型

func String

func String(value interface{}) string

func Uint

func Uint(value interface{}) uint

func Uint8

func Uint8(value interface{}) uint8

func Uint16

func Uint16(value interface{}) uint16

func Uint32

func Uint32(value interface{}) uint32

func Uint64

func Uint64(value interface{}) uint64

Types

This section is empty.

Jump to

Keyboard shortcuts

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