Add "getenv" as an wrapper for os.Getenv

Add a wrapper for the os.Getenv function. The
wrapper takes as input a string that is assumed to be an exported
variable name.

Fixes #977
This commit is contained in:
quoha 2015-03-15 20:56:20 -05:00 committed by bep
parent 32bf8b763c
commit a044734541

View file

@ -1341,6 +1341,7 @@ func init() {
"getCSV": GetCSV,
"getCsv": GetCSV,
"seq": helpers.Seq,
"getenv": func(varName string) string { return os.Getenv(varName) },
}
}