only parse once

This commit is contained in:
Roy Olav Purser 2021-03-25 14:32:58 +01:00
parent 4cd02d04a3
commit 3d41d4a4f0
No known key found for this signature in database
GPG Key ID: 0BA77797F072BC52

View File

@ -76,6 +76,9 @@ func (c *Config) DefineDefault(key string, val string, dtype DataType) {
}
func (c *Config) Parse() {
if c.parsed {
return
}
c.parsed = true
for k,v := range c.env {
if v.empty {