config

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2026 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Field

type Field struct {
	Name         string        `json:"name"`
	Type         FieldType     `json:"type"`
	Label        string        `json:"label"`
	DefaultValue any           `json:"defaultValue"`
	Placeholder  string        `json:"placeholder,omitempty"`
	HelpText     string        `json:"helpText,omitempty"`
	Required     bool          `json:"required,omitempty"`
	Disabled     bool          `json:"disabled,omitempty"`
	Options      []FieldOption `json:"options,omitempty"`
	Min          float32       `json:"min,omitempty"`
	Max          float32       `json:"max,omitempty"`
	Step         float32       `json:"step,omitempty"`
	Tags         Tags          `json:"tags,omitempty"`
}

type FieldGroup

type FieldGroup struct {
	Name   string  `json:"name"`
	Label  string  `json:"label"`
	Fields []Field `json:"fields"`
}

type FieldOption

type FieldOption struct {
	Value string `json:"value"`
	Label string `json:"label"`
}

type FieldType

type FieldType string
const (
	FieldTypeNumber   FieldType = "number"
	FieldTypeText     FieldType = "text"
	FieldTypeTextarea FieldType = "textarea"
	FieldTypeCheckbox FieldType = "checkbox"
	FieldTypeSelect   FieldType = "select"
)

type Tags

type Tags struct {
	Section string `json:"section,omitempty"`
}

Jump to

Keyboard shortcuts

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