update map
This commit is contained in:
parent
297f72dd97
commit
cb18e15022
2
main.go
2
main.go
@ -91,9 +91,11 @@ func (c *Config) Parse() {
|
|||||||
if v.empty {
|
if v.empty {
|
||||||
if v.unset {
|
if v.unset {
|
||||||
v.parsed.err = errors.New(fmt.Sprintf("Environment variable %s not found. It should have been of type %s", k, v.dtype))
|
v.parsed.err = errors.New(fmt.Sprintf("Environment variable %s not found. It should have been of type %s", k, v.dtype))
|
||||||
|
c.env[k] = v
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
v.parsed = parser(v.value)
|
v.parsed = parser(v.value)
|
||||||
|
c.env[k] = v
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user