xtype

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bytes2String added in v0.0.7

func Bytes2String(b []byte) string

Bytes2String ... unsafe(): 163837650 7.215 ns/op 0 B/op 0 allocs/op string(): 31958134 37.09 ns/op 0 B/op 0 allocs/op

func Is added in v0.0.7

func Is(v interface{}, types ...reflect.Kind) bool

Is ...

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 added in v0.0.7

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 added in v0.0.5

func ToInt(v interface{}) int

ToInt ...

func ToInt64 added in v0.0.5

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 added in v0.0.5

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