reflect

package
v0.0.0-...-f1279a5 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const EQUALMETHOD = "Equal"

Variables

View Source
var Err_Equal_UnsupportType = errors.New("不支持的数据类型")

Functions

func Equal

func Equal(v1, v2 interface{}) bool

func EqualMust

func EqualMust(v1, v2 interface{}) bool

func EqualValue

func EqualValue(v1, v2 reflect.Value) bool

func EqualValueMust

func EqualValueMust(v1, v2 reflect.Value) bool

func Get

func Get(s interface{}, field string) (result interface{}, err error)

func Indirect

func Indirect(v reflect.Value) reflect.Value

Indirect 获取指针指向的实际的对象信息

func Set

func Set(s interface{}, field string, v interface{}) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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