reflect

package
v0.0.38 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AllFieldTags added in v0.0.34

func AllFieldTags(req interface{}, key string) []string

func AllTagsValues added in v0.0.34

func AllTagsValues(req interface{}, key string) map[string]interface{}

only get export Fields

func IsZeroValue added in v0.0.33

func IsZeroValue(v reflect.Value) bool

cmd/compile/internal/gc/dump.go

func NonzeroFieldTags added in v0.0.33

func NonzeroFieldTags(req interface{}, key string) []string

req must be struct(Not pointer to struct), or return nil(tt.Field() will panic) key for tag , db or json, if key is empty, use field name instead

func RetrieveStructField

func RetrieveStructField(req interface{}, name string) string

func TrySetStructFiled

func TrySetStructFiled(req interface{}, name, value string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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