Documentation
¶
Index ¶
- Variables
- func InterfaceToSlice(slice interface{}) ([]interface{}, error)
- func IsZero(val interface{}) bool
- func ReadAllTag(val interface{}, tag string) ([]string, []interface{})
- func ReadHaveValueTag(val interface{}, tag string) ([]string, []interface{})
- func TypeEquals(vals ...interface{}) bool
- func ValueIsBlank(value reflect.Value) bool
Constants ¶
This section is empty.
Variables ¶
View Source
var Slice sliceInterfece = (*slice)(nil)
Functions ¶
func InterfaceToSlice ¶ added in v1.0.3
func InterfaceToSlice(slice interface{}) ([]interface{}, error)
InterfaceToSlice slice interface转interface[]
func ReadAllTag ¶
ReadAllTag 读标签 获取val结构体参数数据 返回所有的字段数据及对应字段结构
func ReadHaveValueTag ¶
ReadHaveValueTag 读标签 获取val结构体参数数据 仅返回数据非空的字段数据及对应字段结构
func ValueIsBlank ¶
ValueIsBlank reflect.Value结构体方法封装 判断当前结构参数数据是否为空
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.