Documentation ¶
Index ¶
- func AllFieldTags(req interface{}, key string) []string
- func AllTagsValues(req interface{}, key string) map[string]interface{}
- func IsZeroValue(v reflect.Value) bool
- func NonzeroFieldTags(req interface{}, key string) []string
- func RetrieveStructField(req interface{}, name string) string
- func TrySetStructFiled(req interface{}, name, value string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AllFieldTags ¶ added in v0.0.34
func AllTagsValues ¶ added in v0.0.34
only get export Fields
func IsZeroValue ¶ added in v0.0.33
cmd/compile/internal/gc/dump.go
func NonzeroFieldTags ¶ added in v0.0.33
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 TrySetStructFiled ¶
func TrySetStructFiled(req interface{}, name, value string)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.