Closed 0x7061 closed 7 years ago
I have a string field with an absolute path as the default value, running envconfig.Process() fills it with an empty string.
envconfig.Process()
Example:
type Paths struct { Foo string `default:"/Applications/one/two/tree/"` Bar string `default:"./output/"` }
Foo is empty after processing, while Bar is naturally filled with ./output/. It seems like the starting slash is the culprit.
./output/
Any hints?
My bad, I've been using the wrong path.
I have a string field with an absolute path as the default value, running
envconfig.Process()
fills it with an empty string.Example:
Foo is empty after processing, while Bar is naturally filled with
./output/
. It seems like the starting slash is the culprit.Any hints?