config

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2026 License: GPL-3.0 Imports: 4 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 {
	BackgroundColor string  `yaml:"background_color"`
	Langs           []Lang  `yaml:"langs"`
	Layers          []Layer `yaml:"layers"`
}

Config holds the CV configuration.

func Load

func Load(path string) (Config, error)

Load reads and validates a YAML config file.

type Lang

type Lang struct {
	Code  string `yaml:"code"`
	Label string `yaml:"label"`
}

Lang defines an available language.

type Layer

type Layer struct {
	Key   string            `yaml:"key"`
	Cmd   map[string]string `yaml:"cmd"`
	Help  map[string]string `yaml:"help"`
	Title map[string]string `yaml:"title"`
	Label map[string]string `yaml:"label"`
}

Layer defines a key-driven command.

Jump to

Keyboard shortcuts

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