xtype

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsArray

func IsArray(v interface{}) bool

IsArray ...

func IsBool

func IsBool(v interface{}) bool

IsBool ...

func IsChannel

func IsChannel(v interface{}) bool

IsChannel ...

func IsContains

func IsContains(src, v interface{}) bool

IsContains ...

func IsEmpty

func IsEmpty(v interface{}) bool

IsEmpty ...

func IsFloat

func IsFloat(v interface{}) bool

IsFloat ...

func IsFunc

func IsFunc(v interface{}) bool

IsFunc ...

func IsInt

func IsInt(v interface{}) bool

IsInt ...

func IsJSONObject

func IsJSONObject(v interface{}) bool

IsJSONObject ...

func IsJSONString

func IsJSONString(s string) bool

IsJSONString ...

func IsMap

func IsMap(v interface{}) bool

IsMap ...

func IsNumeric

func IsNumeric(v interface{}) bool

IsNumeric ...

func IsSlice

func IsSlice(v interface{}) bool

IsSlice ...

func IsString

func IsString(v interface{}) bool

IsString ...

func IsStruct

func IsStruct(v interface{}) bool

IsStruct ...

func IsTime

func IsTime(v interface{}) bool

IsTime ...

func IsUint

func IsUint(v interface{}) bool

IsUint ...

func IsZero

func IsZero[V comparable](v V) bool

IsZero 判断变量是否其对应类型的零值

func ToBool

func ToBool(v interface{}) bool

ToBool ...

func ToFloat64

func ToFloat64(v interface{}) float64

ToFloat64 ...

func ToInt

func ToInt(v interface{}) int

ToInt ...

func ToInt64

func ToInt64(v interface{}) int64

ToInt64 ...

func ToSlice

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

ToSlice ...

func ToString

func ToString(v interface{}) string

ToString ...

func ToUint

func ToUint(v interface{}) uint

ToUint ...

func ToUint64

func ToUint64(v interface{}) uint64

ToUint ...

Types

This section is empty.

Jump to

Keyboard shortcuts

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