Documentation ¶
Index ¶
- type Enum
- func (e *Enum) Breadcrumbs() string
- func (e *Enum) Camel() string
- func (e *Enum) ExtraFields() map[string]string
- func (e *Enum) FirstLetter() any
- func (e *Enum) HasTag(t string) bool
- func (e *Enum) IconSafe() string
- func (e *Enum) PackageWithGroup(prefix string) string
- func (e *Enum) Proper() string
- func (e *Enum) ProperPlural() string
- func (e *Enum) Simple() bool
- func (e *Enum) Title() string
- func (e *Enum) ValuesCamel() []string
- type Enums
- type Value
- type Values
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Enum ¶
type Enum struct { Name string `json:"name"` Package string `json:"package"` Group []string `json:"group,omitempty"` Description string `json:"description,omitempty"` Icon string `json:"icon,omitempty"` Values Values `json:"values,omitempty"` Tags []string `json:"tags,omitempty"` TitleOverride string `json:"title,omitempty"` ProperOverride string `json:"proper,omitempty"` RouteOverride string `json:"route,omitempty"` Config util.ValueMap `json:"config,omitempty"` }
func (*Enum) Breadcrumbs ¶
func (*Enum) ExtraFields ¶ added in v1.0.7
func (*Enum) FirstLetter ¶ added in v1.0.5
func (*Enum) PackageWithGroup ¶
func (*Enum) ProperPlural ¶ added in v1.0.5
func (*Enum) ValuesCamel ¶ added in v0.7.20
type Value ¶ added in v1.0.5
type Value struct { Key string Name string Description string Icon string Extra util.ValueMap Default bool Simple bool }
func (*Value) MarshalJSON ¶ added in v1.0.5
func (*Value) UnmarshalJSON ¶ added in v1.0.5
Click to show internal directories.
Click to hide internal directories.