🐛 Fixed 'env: expected a pointer to a Struct' error
This commit is contained in:
parent
8e4ae72f7f
commit
db44b4e3bd
2
main.go
2
main.go
|
@ -115,7 +115,7 @@ func init() {
|
||||||
flag.StringVar(&memProfilePath, "memprofile", "", "set path to saving pprof memory profile")
|
flag.StringVar(&memProfilePath, "memprofile", "", "set path to saving pprof memory profile")
|
||||||
flag.Parse()
|
flag.Parse()
|
||||||
|
|
||||||
if err := env.Parse(&config, env.Options{
|
if err := env.Parse(config, env.Options{
|
||||||
Environment: nil,
|
Environment: nil,
|
||||||
OnSet: nil,
|
OnSet: nil,
|
||||||
Prefix: "INDIEAUTH_",
|
Prefix: "INDIEAUTH_",
|
||||||
|
|
Loading…
Reference in New Issue