summaryrefslogtreecommitdiff
path: root/pkg/config/config.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/config/config.go')
-rw-r--r--pkg/config/config.go16
1 files changed, 16 insertions, 0 deletions
diff --git a/pkg/config/config.go b/pkg/config/config.go
new file mode 100644
index 0000000..b745a60
--- /dev/null
+++ b/pkg/config/config.go
@@ -0,0 +1,16 @@
+package config
+
+import "os"
+
+type Config struct {
+ DBPath string
+ Listen string
+}
+
+func New() *Config {
+ cfg := new(Config)
+ cfg.DBPath = os.Getenv("DB_PATH")
+ cfg.Listen = os.Getenv("LISTEN")
+
+ return cfg
+}