diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2018-08-29 23:05:14 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-29 23:05:14 +1000 |
commit | d8aba3aeee2f7811c383305a5beb7253a748f02f (patch) | |
tree | 9e999f8438e2a9cf85c40e36c63aa9b0aa5ccfc2 /pkg/config | |
parent | 3f26ddc06f445ecaf1dad74737e294394b473e9e (diff) | |
parent | 1b8836e92d7d59cf99d17d5df981337f459712df (diff) |
Merge pull request #241 from antham/master
Fix linting issues
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 c85b8e5eb..899d27fbc 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: |