calaos

package
v0.0.0-...-1773970 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2024 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LOCAL_CONFIG     = "local_config.xml"
	HOME_CONFIG_PATH = ".config/calaos"
	ETC_CONFIG_PATH  = "/etc/calaos"
)

Variables

This section is empty.

Functions

func DeleteConfig

func DeleteConfig(key string) (err error)

func GetConfig

func GetConfig(key string) (err error, value string)

func SetConfig

func SetConfig(key, value string) (err error)

Types

type CalaosConfig

type CalaosConfig struct {
	XMLName xml.Name       `xml:"config"`
	Options []CalaosOption `xml:"option"`
}

type CalaosOption

type CalaosOption struct {
	XMLName xml.Name `xml:"option"`
	Key     string   `xml:"name,attr"`
	Value   string   `xml:"value,attr"`
}

Jump to

Keyboard shortcuts

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