From 8d8f1e72ebc980ae7a692cb7ca025ee72c170ed2 Mon Sep 17 00:00:00 2001 From: bartfokker Date: Thu, 25 Oct 2018 22:21:08 +0200 Subject: [PATCH] rename ConfigFile to File because `config.ConfigFile` stutters. Instead it's `config.File` --- config/file.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/config/file.go b/config/file.go index e344e8c..92bec57 100644 --- a/config/file.go +++ b/config/file.go @@ -13,13 +13,13 @@ var ( xdgRe = regexp.MustCompile("^XDG_*") ) -type ConfigFile struct { +type File struct { Options map[string]string `toml:"options"` Toggles map[string]bool `toml:"toggles"` } -func exportConfig() ConfigFile { - c := ConfigFile{ +func exportConfig() File { + c := File{ Options: make(map[string]string), Toggles: make(map[string]bool), } @@ -33,7 +33,7 @@ func exportConfig() ConfigFile { } func Read() error { - var config ConfigFile + var config File path, err := getConfigPath() if err != nil {