Documentation ¶
Index ¶
- func GetLabelEN(v interface{}, fieldName string) string
- func GetLabelTag(v interface{}, fieldName string) (string, bool)
- func GetLabelZH(v interface{}, fieldName string) string
- func GetLocaleLabel(v interface{}, fieldName string, locale string) string
- func GetTag(v interface{}, fieldName string, tag string) (string, bool)
- func ParseKeyValueMap(value string) map[string]string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetLabelTag ¶
GetLabelTag returns field "label" tag value.
func GetLocaleLabel ¶
GetLocaleLabel returns field label by locale. locale format: en en_US / zh zh_CN zh_HK etc.
func GetTag ¶
GetTag returns tag string v should be struct, pointer or array(slice) if field not exists, returns "" and false.
func ParseKeyValueMap ¶
parse string to KeyValue map.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.