package
Version:
v1.1.0
Opens a new window with list of versions in this module.
Published: Mar 15, 2023
License: Apache-2.0
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 Code2Text[T elemType](enumPtr interface{}) map[T]string
func CodeSet[T elemType](enumPtr interface{}) set.Set[T]
func ID2NameList(enumPtr interface{}) []map[string]interface{}
ID2NameList 返回数据结构为:
[{
"id": enum code,
"name": enum text
},{
...
}]
type Elem[T elemType] struct {
Code T
Text string
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.