1
0
Fork 0
mirror of https://github.com/gohugoio/hugo.git synced 2025-05-01 00:59:55 +00:00

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 
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) },
}
}