package
Version:
v1.9.11
Opens a new window with list of versions in this module.
Published: Sep 29, 2020
License: MIT
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
func GetDataByFieldName(data interface{}, filedName string) (interface{}, error)
典型reflect 操作
返回对应字段值
func StructToString(st interface{}) string
return struct string name
func ToMap(st interface{}) map[string]interface{}
struct to map
func ToSlice(arr interface{}) []interface{}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.