str2enum

package
v0.0.0-...-7423af0 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidEnum error = errors.New("invalid enum")
)

Functions

This section is empty.

Types

type AnyToEnum

type AnyToEnum func(any) IO[string]

func (AnyToEnum) MapsToMaps

func (a AnyToEnum) MapsToMaps(
	original iter.Seq2[map[string]any, error],
	enumColumnName string,
) IO[iter.Seq2[map[string]any, error]]

type EnumSet

type EnumSet map[string]struct{}

func (EnumSet) ToAnyToEnum

func (s EnumSet) ToAnyToEnum(alt IO[string]) AnyToEnum

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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