enumer

package module
v1.0.19 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2023 License: MIT Imports: 5 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetName added in v1.0.6

func GetName[E ~string]() string

func IsEq added in v1.0.6

func IsEq[A ~string, B ~string](a A) func(B) bool

func Join added in v1.0.10

func Join[A ~string](values []A, sep string) string

func MarshalJSON added in v1.0.6

func MarshalJSON[E ~string](e E) ([]byte, error)

func MarshalYAML added in v1.0.6

func MarshalYAML[E ~string](e E) (interface{}, error)

func Scan added in v1.0.6

func Scan[E ~string](value interface{}, e *E, parser func(string) (E, error)) error

func UnmarshalJSON added in v1.0.6

func UnmarshalJSON[E ~string](data []byte, e *E, parser func(string) (E, error)) error

func UnmarshalYAML added in v1.0.6

func UnmarshalYAML[E ~string](unmarshal func(interface{}) error, e *E, parser func(string) (E, error)) error

func Value added in v1.0.6

func Value[E ~string](e E) (driver.Value, error)

Types

This section is empty.

Directories

Path Synopsis
cmd
enum_internal

Jump to

Keyboard shortcuts

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