Discover Packages
github.com/danielriddell21/unum
internal
config
package
Version:
v1.1.0
Opens a new window with list of versions in this module.
Published: Apr 12, 2026
License: MIT
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Package config handles loading user configuration from disk.
type Config struct {
DarkTheme string `json:"dark_theme"`
LightTheme string `json:"light_theme"`
}
Config holds persistent user preferences for unum.
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)
Source Files
¶
Click to show internal directories.
Click to hide internal directories.