enum

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2025 License: Unlicense Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	World exampleRegion = iota
	Continent
	Country
	City
	Street
	House
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Enum

type Enum[T any] interface {
	String() string
	Value() T
}

type ExampleRegion

type ExampleRegion interface {
	Enum[int]
	// contains filtered or unexported methods
}

func NewExampleRegion

func NewExampleRegion(key string) ExampleRegion

Jump to

Keyboard shortcuts

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