config

package
v0.12.1 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package config handles loading user configuration from disk.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	DarkTheme  string `json:"dark_theme"`  // cyber | matrix | dracula | nord
	LightTheme string `json:"light_theme"` // clean | solarized
}

Config holds persistent user preferences for unum.

func Load

func Load() Config

Load reads the config file from the OS config directory. Returns defaults if the file is absent or malformed. Location: $XDG_CONFIG_HOME/unum/config.json (Linux/macOS)

%APPDATA%\unum\config.json             (Windows)

Jump to

Keyboard shortcuts

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