Documentation ¶
Index ¶
- func Copy(toValue interface{}, fromValue interface{}) (err error)
- func CopyStruct(target interface{}, src interface{})
- func GetStructField(v interface{}, field string, caseSensitive ...bool) reflect.Value
- func GetStructFieldInfoMap(v interface{}, structColsParams ...*StructSelCols) (ret map[string]FieldInfo)
- func GetStructFieldInfoMap2(v interface{}, ret map[string]FieldInfo, structColsParams ...*StructSelCols) map[string]FieldInfo
- func GetStructFieldMap(v interface{}, structColsParams ...*StructSelCols) (ret map[string]reflect.Value)
- func GetStructFieldName2ValueMap(v interface{}, structColsParams ...*StructSelCols) (ret map[string]interface{})
- func GetStructFieldNames(v interface{}, structColsParams ...*StructSelCols) (ret []string)
- func GetStructFieldSimple(val reflect.Value, field string, caseSensitive bool) reflect.Value
- func GetStructFieldToString(ob interface{}, field string, caseSensitive ...bool) string
- func GetStructFieldValue(v interface{}, field string, caseSensitive ...bool) interface{}
- func GetStructFieldValueSimple(v interface{}, field string, caseSensitive bool) interface{}
- func GetStructMethod(v interface{}, field string) interface{}
- func GetStructMethodSimple(v interface{}, method string) interface{}
- func SetStructFieldValue(obj interface{}, field string, v interface{}, caseSensitive ...bool) bool
- type FieldInfo
- type StructSelCols
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Copy ¶
func Copy(toValue interface{}, fromValue interface{}) (err error)
from https://github.com/jinzhu/copier Copy copy things
func CopyStruct ¶
func CopyStruct(target interface{}, src interface{})
func GetStructField ¶
func GetStructFieldInfoMap ¶
func GetStructFieldInfoMap(v interface{}, structColsParams ...*StructSelCols) (ret map[string]FieldInfo)
func GetStructFieldInfoMap2 ¶
func GetStructFieldInfoMap2(v interface{}, ret map[string]FieldInfo, structColsParams ...*StructSelCols) map[string]FieldInfo
func GetStructFieldMap ¶
func GetStructFieldMap(v interface{}, structColsParams ...*StructSelCols) (ret map[string]reflect.Value)
func GetStructFieldName2ValueMap ¶
func GetStructFieldName2ValueMap(v interface{}, structColsParams ...*StructSelCols) (ret map[string]interface{})
func GetStructFieldNames ¶
func GetStructFieldNames(v interface{}, structColsParams ...*StructSelCols) (ret []string)
func GetStructFieldSimple ¶
func GetStructFieldToString ¶
func GetStructFieldValue ¶
func GetStructMethod ¶
func GetStructMethod(v interface{}, field string) interface{}
func GetStructMethodSimple ¶
func GetStructMethodSimple(v interface{}, method string) interface{}
func SetStructFieldValue ¶
Types ¶
type StructSelCols ¶
Click to show internal directories.
Click to hide internal directories.