enums

package
v0.0.346 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 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
	DescriptionMeta() EnumDescriptionMetaValue
}

type Enum

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

type EnumDescriptionMetaValue added in v0.0.335

type EnumDescriptionMetaValue struct {
	VarName     string `json:"varName"`
	Value       Enum   `json:"value"`
	Description string `json:"description"`
}

type EnumMetaValue

type EnumMetaValue struct {
	VarName     string  `json:"varName"`
	Value       Enum    `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