This commit is contained in:
Hadi
2026-08-27 23:14:56 +02:00
commit e9c2a59ee5
41 changed files with 3680 additions and 0 deletions
+31
View File
@@ -0,0 +1,31 @@
package config
import (
_ "embed"
)
//go:embed default_config.yaml
var defaultConfig []byte
type Config struct {
Version string `mapstructure:"-"`
App struct {
ShowFlags bool `mapstructure:"show_flags"`
FocusSearchOnLaunch bool `mapstructure:"focus_search_on_launch"`
Default struct {
Tor bool `mapstructure:"tor"`
P2P bool `mapstructure:"p2p"`
SecureCore bool `mapstructure:"securecore"`
Free bool `mapstructure:"free"`
Prefer string `mapstructure:"prefer"`
} `mapstructure:"default"`
Favorites []string `mapstructure:"favorites"`
} `mapstructure:"app"`
Keybindings Keybindings `mapstructure:"keybindings"`
}
var Global *Config