enums

package
v0.0.260 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2023 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DescriptionEnum

type DescriptionEnum interface {
	Enum
	Description() string
}

type Enum

type Enum interface {
	Valid() bool
	ValuesAny() []any
	ValuesMeta() []EnumMetaValue
	VarName() string
}

type EnumMetaValue

type EnumMetaValue struct {
	VarName     string  `json:"varName"`
	Value       any     `json:"value"`
	Description *string `json:"description"`
}

type StringEnum

type StringEnum interface {
	Enum
	String() string
}

Jump to

Keyboard shortcuts

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