Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetReflectFields ¶
func GetReflectFields(res interface{}) (fields []string)
GetReflectFields 获取结构体列名
func SetValueByTag ¶
SetValueByTag 设置结构体某列字段的值
Types ¶
type Info ¶
type Info struct { Fields map[string]interface{} `json:"fields"` ElemInfo map[string]reflect.StructField `json:"elem_info"` Size int64 `json:"size"` }
func GetReflectInfo ¶
func GetReflectInfo(res interface{}) (info Info)
Click to show internal directories.
Click to hide internal directories.