Help us shape the future of Go! Take the 2026 Go Developer Survey

enum

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Entry

type Entry[T ~string] string

func (Entry[T]) Markdown

func (ee Entry[T]) Markdown() string

func (Entry[T]) Ptr

func (ee Entry[T]) Ptr() *T

func (Entry[T]) String

func (ee Entry[T]) String() string

func (Entry[T]) Unwrap

func (ee Entry[T]) Unwrap() T

type Enum

type Enum[T ~string] []Entry[T]

func Of

func Of[T ~string](entries ...Entry[T]) Enum[T]

func (*Enum[T]) Entry

func (e *Enum[T]) Entry(v string) (ee Entry[T])

func (Enum[T]) Markdown

func (e Enum[T]) Markdown() string

func (Enum[T]) Strings

func (e Enum[T]) Strings() []string

func (Enum[T]) With

func (e Enum[T]) With(entries ...Entry[T]) Enum[T]

Jump to

Keyboard shortcuts

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