reflects

package
v0.0.0-...-a626ee0 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Comparable

func Comparable(v reflect.Value) bool

Comparable 可比较的类型

默认原始类型支持比较 int/unit/float/string

func Indirect

func Indirect(v reflect.Value) reflect.Value

Indirect 循环获取最终类型

Loop to get final type

func IsArray

func IsArray(v reflect.Value) bool

IsArray 是否是数组/切片类型

Is it array / slice type

func IsFloat

func IsFloat(v reflect.Value) bool

IsFloat 是否是浮点型

func IsInt

func IsInt(v reflect.Value) bool

IsInt 是否是整型

func IsNumber

func IsNumber(v reflect.Value) reflect.Kind

IsNumber 是否是数字类型, 返回当前的数字类型

func IsUnit

func IsUnit(v reflect.Value) bool

IsUnit 是否是Unit类型

func SameKind

func SameKind(a, b reflect.Value) bool

SameKind 判断是否是同类型不同字节的

Types

This section is empty.

Jump to

Keyboard shortcuts

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