initial commit
This commit is contained in:
13
app/config.go
Normal file
13
app/config.go
Normal file
@@ -0,0 +1,13 @@
|
||||
package app
|
||||
|
||||
import "os"
|
||||
|
||||
type Config struct {
|
||||
JWTSecret string
|
||||
}
|
||||
|
||||
var cfg *Config
|
||||
|
||||
func LoadConfig() {
|
||||
cfg = &Config{JWTSecret: os.Getenv("JWT_SECRET")}
|
||||
}
|
||||
Reference in New Issue
Block a user