reflect

package
v1.30.36 Latest Latest
Warning

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

Go to latest
Published: May 16, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsStruct added in v1.30.31

func IsStruct(typ Kind) bool

func IsZero added in v1.20.6

func IsZero(v interface{}) bool

func Name added in v1.30.31

func Name(v interface{}) string

Name return struct string name

func New added in v1.20.0

func New(v interface{}) interface{}

New returns a Value representing a pointer to a new zero value

func NewArray added in v1.20.6

func NewArray(v interface{}) interface{}

NewArray returns a []Value representing a pointer to a new zero value

func Path added in v1.30.31

func Path(typ reflect.Type, path ...string) string

func ToSlice

func ToSlice(arr interface{}) []interface{}

ToSlice arr must array data array struct data to []interface

func TrueType added in v1.30.31

func TrueType(typ reflect.Type) reflect.Type

func TrueTypeof added in v1.30.31

func TrueTypeof(v interface{}) reflect.Type

func TrueTypeofValue added in v1.30.31

func TrueTypeofValue(v interface{}) (typ reflect.Type, i interface{})

func TrueValue added in v1.30.31

func TrueValue(typ reflect.Value) reflect.Value

func TrueValueOf added in v1.30.31

func TrueValueOf(v interface{}) reflect.Value

func ValueOfName added in v1.30.31

func ValueOfName(data interface{}, filedName string) (interface{}, error)

ValueOfName reflect value via field name

Types

type Kind added in v1.30.31

type Kind interface {
	Kind() reflect.Kind
}

Jump to

Keyboard shortcuts

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