summaryrefslogtreecommitdiff
path: root/pkg/config/config.go
blob: b745a603331a40c8f27589a32c6e28fef5842f54 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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
}