aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/datamaps/config.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/datamaps/config.go')
-rw-r--r--pkg/datamaps/config.go9
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()