enum

package
v0.15.5 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Str

type Str[T cmp.Ordered] struct {
	// contains filtered or unexported fields
}

func NewStr

func NewStr[T cmp.Ordered](to_str map[T]string) Str[T]

func (Str[T]) All

func (self Str[T]) All() []T

func (Str[T]) FromStr

func (self Str[T]) FromStr(s string) (T, bool)

func (Str[T]) Keys added in v0.14.1

func (self Str[T]) Keys() []string

func (Str[T]) ToStr

func (self Str[T]) ToStr(t T) (string, bool)

Jump to

Keyboard shortcuts

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