enum

package
v0.19.2 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2026 License: MPL-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

Jump to

Keyboard shortcuts

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