enum

package
v0.0.0-...-fdc5c16 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 13, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Build

func Build(enums interface{}, begin int, prefix string)

func BuildErrorEnum

func BuildErrorEnum(enum interface{}, startCode int64)

func SimpleBuild

func SimpleBuild(enums interface{})

Types

type Element

type Element struct {
	// contains filtered or unexported fields
}

func (*Element) Description

func (t *Element) Description() string

func (*Element) Int

func (t *Element) Int() int

func (*Element) String

func (t *Element) String() string

type ErrorElement

type ErrorElement struct {
	// contains filtered or unexported fields
}

func (ErrorElement) Code

func (e ErrorElement) Code() int64

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{}) *ErrorElementWithData

func (ErrorElement) NewErrorWithNewMessage

func (e ErrorElement) NewErrorWithNewMessage(msg string) ErrorElement

type ErrorElementWithData

type ErrorElementWithData struct {
	ErrorElement
	// contains filtered or unexported fields
}

func (ErrorElementWithData) Data

func (e ErrorElementWithData) Data() interface{}

type IElement

type IElement interface {
	Int() int
	String() string
	Description() string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL