Documentation ¶
Index ¶
- func GetStructFieldValueByTagName(c interface{}, tagType string, tagName string) (interface{}, error)
- func GetStructFieldsMapperByTagName(c interface{}, tagName string) (fieldsName []string, fieldsValue []interface{})
- func GetStructFieldsNameAndTagByTagName(c interface{}, tagName string) (tagFields []string, structFields []string)
- func GetType(val interface{}) (typeName string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetStructFieldValueByTagName ¶
func GetStructFieldValueByTagName(c interface{}, tagType string, tagName string) (interface{}, error)
GetStructFieldValueByTagName - Returns a value ptr to struct field by tag type and tag name
func GetStructFieldsMapperByTagName ¶
func GetStructFieldsMapperByTagName(c interface{}, tagName string) (fieldsName []string, fieldsValue []interface{})
GetStructFieldsMapperByTagName - Returns two slices filtered by a tag name, the first is a slice of strings with struct tags value, the seconds is a slice of ptr to struct fields value
func GetStructFieldsNameAndTagByTagName ¶
func GetStructFieldsNameAndTagByTagName(c interface{}, tagName string) (tagFields []string, structFields []string)
GetStructFieldsNameAndTagByTagName - Returns two slices filtered by a tag name, the first is a slice of strings with struct tags value, the seconds is a slice of string with struct fields name
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.