config

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 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 {
	Theme string `json:"theme"` // cyber | matrix | dracula | nord
}

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