We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 216e59e commit f2cfc67Copy full SHA for f2cfc67
stiller-backend/config.go
@@ -4,6 +4,7 @@ import "github.com/profclems/go-dotenv"
4
5
type ConfigType struct {
6
// local directory where to retrieve/store data from/to
7
+ Port string
8
FilesPath string
9
DBPath string
10
Secret []byte
@@ -14,6 +15,7 @@ func newConfig() *ConfigType {
14
15
dotenv.Load()
16
17
return &ConfigType{
18
+ Port: dotenv.GetString("Port"),
19
FilesPath: dotenv.GetString("FilesPath"),
20
DBPath: dotenv.GetString("DBPath"),
21
Secret: []byte(dotenv.GetString("Secret")),
0 commit comments