implement exist
This commit is contained in:
parent
e2a465b4df
commit
287a79f3e2
1 changed files with 4 additions and 0 deletions
|
|
@ -35,3 +35,7 @@ func GetOrFatal(configName string) string {
|
|||
return ""
|
||||
|
||||
}
|
||||
|
||||
func Exist(configName string) bool {
|
||||
return os.Getenv(configName) != ""
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue