default_generation

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Code generated via enum_codegen DO NOT EDIT.

Index

Constants

This section is empty.

Variables

View Source
var Tags = map[Enum]string{
	Undefined:  "Undefined",
	EnumValue1: "Sample value",
	EnumValue2: "enum_value_2",
	EnumValue3: "enum_value_3",
	EnumValue4: "enum_value_4",
	EnumValue5: "enum_value_5",
}
View Source
var Translations = map[Enum]string{
	Undefined:  "Enum Value is undefined",
	EnumValue1: "enum_value_1",
	EnumValue2: "enum_value_2",
	EnumValue3: "Enum ultra value",
	EnumValue4: "Enum last value",
	EnumValue5: "enum_value_5",
}
View Source
var Types = map[string]Enum{
	"Undefined":    Undefined,
	"Sample value": EnumValue1,
	"enum_value_2": EnumValue2,
	"enum_value_3": EnumValue3,
	"enum_value_4": EnumValue4,
	"enum_value_5": EnumValue5,
}

Functions

This section is empty.

Types

type Enum

type Enum int
const (
	// Undefined Value="Undefined" Translate="Enum Value is undefined"
	Undefined Enum = iota
	// EnumValue1 docs Value="Sample value"
	EnumValue1
	EnumValue2
	// EnumValue3 Some documentation, some explanation, etc. Translate="Enum ultra value"
	EnumValue3
	// Translate="Enum last value" and some documentation here
	EnumValue4
	EnumValue5
)

func (Enum) MarshalJSON

func (t Enum) MarshalJSON() ([]byte, error)

func (*Enum) Scan

func (t *Enum) Scan(src any) error

func (Enum) String

func (t Enum) String() string

func (*Enum) UnmarshalJSON

func (t *Enum) UnmarshalJSON(data []byte) error

func (Enum) Value

func (t Enum) Value() (driver.Value, error)

Jump to

Keyboard shortcuts

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