diff options
Diffstat (limited to 'pkg/config')
-rw-r--r-- | pkg/config/app_config.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pkg/config/app_config.go b/pkg/config/app_config.go index 3e384d80f..3c272e520 100644 --- a/pkg/config/app_config.go +++ b/pkg/config/app_config.go @@ -192,6 +192,7 @@ func (c *AppConfig) SaveAppState() error { return ioutil.WriteFile(filepath, marshalledAppState, 0644) } +// LoadAppState loads recorded AppState from file func (c *AppConfig) LoadAppState() error { filepath, err := prepareConfigFile("state.yml") if err != nil { @@ -207,6 +208,7 @@ func (c *AppConfig) LoadAppState() error { return yaml.Unmarshal(appStateBytes, c.AppState) } +// GetDefaultConfig returns the application default configuration func GetDefaultConfig() []byte { return []byte( `gui: |