Documentation
¶
Index ¶
- func Build(enums interface{}, begin int, prefix string, strKey string)
- func BuildErrorEnum(enum interface{}, startCode int64)
- func SimpleBuild(enums interface{})
- func SimpleBuildWithNameKey(enums interface{}, strKey string)
- type AddressableEnum
- type Element
- type ErrorElement
- func (e ErrorElement) Code() int64
- func (e ErrorElement) Data() interface{}
- func (e ErrorElement) Error() string
- func (e ErrorElement) Name() string
- func (e ErrorElement) NewErrorWithData(msg string, data interface{}) *ErrorElement
- func (e ErrorElement) NewErrorWithNewMessage(msg string) ErrorElement
- type IElement
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildErrorEnum ¶
func BuildErrorEnum(enum interface{}, startCode int64)
func SimpleBuild ¶
func SimpleBuild(enums interface{})
func SimpleBuildWithNameKey ¶
func SimpleBuildWithNameKey(enums interface{}, strKey string)
Types ¶
type AddressableEnum ¶
type AddressableEnum struct {
// contains filtered or unexported fields
}
func (*AddressableEnum) Get ¶
func (a *AddressableEnum) Get(elName string) *Element
func (*AddressableEnum) GetByVal ¶
func (a *AddressableEnum) GetByVal(val int) *Element
type Element ¶
type Element struct {
// contains filtered or unexported fields
}
func (*Element) Description ¶
type ErrorElement ¶
type ErrorElement struct {
// contains filtered or unexported fields
}
func (ErrorElement) Code ¶
func (e ErrorElement) Code() int64
func (ErrorElement) Data ¶
func (e ErrorElement) Data() interface{}
func (ErrorElement) Error ¶
func (e ErrorElement) Error() string
func (ErrorElement) Name ¶
func (e ErrorElement) Name() string
func (ErrorElement) NewErrorWithData ¶
func (e ErrorElement) NewErrorWithData(msg string, data interface{}) *ErrorElement
func (ErrorElement) NewErrorWithNewMessage ¶
func (e ErrorElement) NewErrorWithNewMessage(msg string) ErrorElement
Click to show internal directories.
Click to hide internal directories.