config

package
v0.6.21 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2025 License: MIT Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetBool

func GetBool(module string, key string) bool

func GetFloat

func GetFloat(module string, key string) float64

func GetInt

func GetInt(module string, key string) int

func GetString

func GetString(module string, key string) string

func GetStringSlice

func GetStringSlice(module string, key string) []string

func Load

func Load(auto bool) error

func Name

func Name(name string)

func Register

func Register(module string, form *Form)

func Set

func Set(module string, key string, value any)

func SetDefault added in v0.2.3

func SetDefault(module string, key string, value any)

func Shutdown

func Shutdown() error

func Startup

func Startup() error

func Store

func Store() error

func Unregister added in v0.2.3

func Unregister(module string)

Types

type Form added in v0.2.3

type Form struct {
	Title  string        `json:"title"`
	Module string        `json:"module"`
	Fields []smart.Field `json:"fields"`
}

func GetModule added in v0.2.3

func GetModule(module string) *Form

func GetModules added in v0.2.3

func GetModules() []Form

Jump to

Keyboard shortcuts

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