Documentation
¶
Overview ¶
Package config provides persistent application configuration for PuzzleTea. Settings are stored as JSON in ~/.puzzletea/config.json alongside the game history database.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultDBPath ¶ added in v1.7.0
func DefaultDBPath() string
DefaultDBPath returns the default database path ~/.puzzletea/history.db.
Types ¶
type Config ¶
type Config struct {
Theme string `json:"theme,omitempty"` // theme name; empty = default
DBPath string `json:"db_path,omitempty"` // database path; empty = ~/.puzzletea/history.db
}
Config holds all user-configurable settings.
func Default ¶
func Default() *Config
Default returns a Config with all settings at their zero values (the built-in defaults).
Click to show internal directories.
Click to hide internal directories.