summaryrefslogtreecommitdiffstats
path: root/pkg/config
diff options
context:
space:
mode:
authorAnthony HAMON <antham@users.noreply.github.com>2018-08-29 13:32:34 +0200
committerantham <hamonanth@gmail.com>2018-08-29 13:46:51 +0200
commitcda7b374e2b95d4f6b71e896e775bc0d688cc710 (patch)
tree4b05cce5951922640cb85353a575f34b9dc86320 /pkg/config
parente889a40caf3a3b3b8ac3e7bc029310249a923d34 (diff)
fix linting issues
Diffstat (limited to 'pkg/config')
-rw-r--r--pkg/config/app_config.go2
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: