diff options
author | Anthony HAMON <antham@users.noreply.github.com> | 2018-08-29 13:32:34 +0200 |
---|---|---|
committer | antham <hamonanth@gmail.com> | 2018-08-29 13:46:51 +0200 |
commit | cda7b374e2b95d4f6b71e896e775bc0d688cc710 (patch) | |
tree | 4b05cce5951922640cb85353a575f34b9dc86320 /pkg | |
parent | e889a40caf3a3b3b8ac3e7bc029310249a923d34 (diff) |
fix linting issues
Diffstat (limited to 'pkg')
-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 c85b8e5eb..0acd9d820 100644 --- a/pkg/config/app_config.go +++ b/pkg/config/app_config.go @@ -190,6 +190,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 { @@ -205,6 +206,7 @@ func (c *AppConfig) LoadAppState() error { return yaml.Unmarshal(appStateBytes, c.AppState) } + // GetDefaultConfig returns the application default configuration func GetDefaultConfig() []byte { return []byte( `gui: |