Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var CONFIG_PATH string
View Source
var Cfg = Config{}
Functions ¶
func GenerateDefaultConfig ¶
func InitConfig ¶
func InitConfig() error
Types ¶
type Config ¶
type Config struct {
// FIXME (k): <2025-06-12 01:08>
Debug bool `default:"false" toml:"debug"`
// Modules []string
EnableEmoji bool `default:"true" toml:"enable_emoji"`
Paging bool `default:"true" toml:"paging"`
PagerCommand string `toml:"pager_command"`
EnglishOnly bool `default:"false" toml:"english_only"`
Theme string `default:"temp" toml:"theme"`
HTTPProxy string `toml:"http_proxy"`
ClearScreen bool `toml:"clear_screen" default:"false"`
FreqAlert bool `toml:"freq_alert" default:"false"`
Logging LoggerConfig `toml:"logging"`
FileExists bool `toml:"-"`
ModTime int64 `toml:"-"`
}
func (*Config) CheckAndApply ¶
Click to show internal directories.
Click to hide internal directories.