add template function getenv

Signed-off-by: Chuanjian Wang <me@ckeyer.net>
This commit is contained in:
Chuanjian Wang 2017-05-07 12:28:21 +08:00
parent 4601775c18
commit 87b05847bf
No known key found for this signature in database
GPG key ID: D6B63261AEF77C53

View file

@ -22,6 +22,7 @@ import (
"encoding/json"
"fmt"
"net"
"os"
"os/exec"
"strings"
text_template "text/template"
@ -139,6 +140,7 @@ var (
"buildResolvers": buildResolvers,
"isLocationAllowed": isLocationAllowed,
"buildLogFormatUpstream": buildLogFormatUpstream,
"getenv": os.Getenv,
"contains": strings.Contains,
"hasPrefix": strings.HasPrefix,
"hasSuffix": strings.HasSuffix,