new directory
This commit is contained in:
parent
22fcaa1b8b
commit
b1394b76a5
@ -115,7 +115,14 @@ func (c *Config) GetInt(key string)(int64) {
|
||||
return 0
|
||||
}
|
||||
func (c *Config) GetDirectory(key string)(string) {
|
||||
return c.GetString(key)
|
||||
if c.parsed {
|
||||
upper := strings.ToUpper(key)
|
||||
entry, ok := c.env[upper]
|
||||
if ok {
|
||||
return entry.parsed.strval
|
||||
}
|
||||
}
|
||||
return ""
|
||||
}
|
||||
func (c *Config) GetString(key string)(string) {
|
||||
if c.parsed {
|
||||
|
Loading…
Reference in New Issue
Block a user