enums

package
v0.2.20 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func JsonObj

func JsonObj(val int, enum string, des string) ([]byte, error)

func SelectOptions

func SelectOptions[T any](enums []T) []models.SelectOptions

func UnmarshalEnum

func UnmarshalEnum(value []byte) int

Types

type BaseValEnum

type BaseValEnum struct {
	Enum string `json:"enum"`
	Val  int    `json:"val"`
	Des  string `json:"des"`
}

func BE

func BE(val any) BaseValEnum

Jump to

Keyboard shortcuts

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