mirror of
https://github.com/anotherhadi/proton-vpn-tui.git
synced 2026-10-05 11:18:27 +02:00
init
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user