diff options
author | Matthew Lemon <matt@matthewlemon.com> | 2020-07-24 15:28:02 +0100 |
---|---|---|
committer | Matthew Lemon <matt@matthewlemon.com> | 2020-07-24 15:28:02 +0100 |
commit | 5a30da3fbdab17ecbcacb09b38d4cd9faf9e3044 (patch) | |
tree | c359082012e70029f4c77652c6eb85dbc84f63fd /pkg/datamaps/config.go | |
parent | 594f81b04c7d9194274395c06ffaf6b51d87e441 (diff) |
starting to add new code
Diffstat (limited to '')
-rw-r--r-- | pkg/datamaps/config.go | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/pkg/datamaps/config.go b/pkg/datamaps/config.go index 713ad5a..687166c 100644 --- a/pkg/datamaps/config.go +++ b/pkg/datamaps/config.go @@ -11,6 +11,15 @@ const ( dbName = "datamaps.db" ) +// DetectConfig looks for the configuration directory and +// files, and the database file needed to run the application. +func DetectConfig() bool { + dir, err := os.UserConfigDir() + if err != nil { + return "", err + } +} + // SetUp creates the config directory and requisite files func SetUp() (string, error) { dir, err := os.UserConfigDir() |