enums

package
v1.6.2 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Marshal

func Marshal[Enum ~string](value Enum, allowed map[Enum]struct{}) ([]byte, error)

func Scan

func Scan[Enum ~string](src any, out *Enum, allowed map[Enum]struct{}) error

func Set

func Set[Enum ~string](vals []Enum) map[Enum]struct{}

func Unmarshal

func Unmarshal[Enum ~string](b []byte, out *Enum, allowed map[Enum]struct{}) error

func Validate

func Validate[Enum ~string](value Enum, allowed map[Enum]struct{}) error

func Value

func Value[Enum ~string](value Enum, allowed map[Enum]struct{}) (driver.Value, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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