only parse once
This commit is contained in:
parent
4cd02d04a3
commit
3d41d4a4f0
@ -76,6 +76,9 @@ func (c *Config) DefineDefault(key string, val string, dtype DataType) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (c *Config) Parse() {
|
func (c *Config) Parse() {
|
||||||
|
if c.parsed {
|
||||||
|
return
|
||||||
|
}
|
||||||
c.parsed = true
|
c.parsed = true
|
||||||
for k,v := range c.env {
|
for k,v := range c.env {
|
||||||
if v.empty {
|
if v.empty {
|
||||||
|
Loading…
Reference in New Issue
Block a user