read

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

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 IsZero added in v1.0.3

func IsZero(val interface{}) bool

IsZero 判断当前结果为零值

func ReadAllTag

func ReadAllTag(val interface{}, tag string) ([]string, []interface{})

ReadAllTag 读标签 获取val结构体参数数据 返回所有的字段数据及对应字段结构

func ReadHaveValueTag

func ReadHaveValueTag(val interface{}, tag string) ([]string, []interface{})

ReadHaveValueTag 读标签 获取val结构体参数数据 仅返回数据非空的字段数据及对应字段结构

func TypeEquals added in v1.0.3

func TypeEquals(vals ...interface{}) bool

TypeEquals 判断两个结果类型是否一致

func ValueIsBlank

func ValueIsBlank(value reflect.Value) bool

ValueIsBlank reflect.Value结构体方法封装 判断当前结构参数数据是否为空

Types

This section is empty.

Jump to

Keyboard shortcuts

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