add template function getenv
Signed-off-by: Chuanjian Wang <me@ckeyer.net>
This commit is contained in:
parent
4601775c18
commit
87b05847bf
1 changed files with 2 additions and 0 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue