This commit is contained in:
2026-02-05 00:47:48 +08:00
parent e862f8deec
commit 3588c49d7d
11 changed files with 90 additions and 59 deletions

View File

@@ -19,6 +19,8 @@ type WindowState struct {
Maximised bool `mapstructure:"maximised"`
}
const Version = "0.0.1"
type Config struct {
v *viper.Viper
mu sync.RWMutex
@@ -176,3 +178,7 @@ func (c *Config) GetSaveHistory() bool {
defer c.mu.RUnlock()
return c.SaveHistory
}
func (c *Config) GetVersion() string {
return Version
}