Documentation
¶
Index ¶
- func GetBy(enumType interface{}, condition func(string) bool) interface{}
- func GetEnumMap(enumType interface{}) map[string]interface{}
- func GetFieldValues(enumType interface{}, fieldName string) []interface{}
- func GetNameFieldMap(enumType interface{}, fieldName string) map[string]interface{}
- func GetNames(enumType interface{}) []string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetEnumMap ¶
func GetEnumMap(enumType interface{}) map[string]interface{}
GetEnumMap 获取枚举名称与枚举对象的映射
func GetFieldValues ¶
func GetFieldValues(enumType interface{}, fieldName string) []interface{}
GetFieldValues 获取枚举类中各枚举对象下指定字段的值
func GetNameFieldMap ¶
GetNameFieldMap 获取枚举名与指定字段值的映射
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.