commit 037bd3ed5a0472887d2d74abe04440b9d60f4a4a parent 051b3bf9c3ee0c12e945cdf0c862d261ffd3cf0f Author: MTRNord <mtrnord1@gmail.com> Date: Tue, 13 Mar 2018 18:53:57 +0100 Use exact path Diffstat:
| M | config/config.go | | | 4 | +--- |
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/config/config.go b/config/config.go @@ -1,7 +1,6 @@ package config import ( - "github.com/shibukawa/configdir" "gopkg.in/yaml.v2" "io/ioutil" "path/filepath" @@ -23,8 +22,7 @@ type TwitterConfig struct { } func ConfigPath() string { - configDirs := configdir.New("SocialNetworksNews", "API") - filePath := filepath.ToSlash(configDirs.QueryFolders(configdir.System)[0].Path) + filePath := filepath.ToSlash("/etc/SocialNetworksNews") return filePath }