enum

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrValidationNoValues       = errors.New("no values found")
	ErrValidationNoUndefined    = errors.New("no undefined value found")
	ErrValidationDuplicateValue = errors.New("duplicate value found")
)

Functions

This section is empty.

Types

type Data

type Data struct {
	Name      string
	Value     int64
	SnakeName string
	Translate string
}

type Enum

type Enum []*Data

func (*Enum) Validate

func (e *Enum) Validate(forceUndefined bool) error

Jump to

Keyboard shortcuts

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