config

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	PresetDefaults Preset
	General        GeneralConfigOptions
	Presets        *OrderedMap[string, *Preset]
}

func ReadConfigOrCreateIfNotExist

func ReadConfigOrCreateIfNotExist(configFilePath string) (*Config, error)

type GeneralConfigOptions

type GeneralConfigOptions struct {
	AllowConcurrentPresets bool
}

type OrderedMap added in v0.2.0

type OrderedMap[K string, V fmt.GoStringer] struct {
	*orderedmap.OrderedMap[K, V]
}

func NewOrderedMap added in v0.2.0

func NewOrderedMap[K string, V fmt.GoStringer]() *OrderedMap[K, V]

func (*OrderedMap[K, V]) GoString added in v0.2.0

func (m *OrderedMap[K, V]) GoString() string

impl `fmt.GoStringer`

type Preset added in v0.2.0

type Preset struct {
	Autorun          bool
	KanataExecutable string
	KanataConfig     string
	TcpPort          int
	LayerIcons       map[string]string
}

func (*Preset) GoString added in v0.2.0

func (m *Preset) GoString() string

Jump to

Keyboard shortcuts

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