add string split function to template funcMap
This commit is contained in:
parent
7d6c958c9d
commit
bbf831afae
2 changed files with 2 additions and 0 deletions
|
@ -30,6 +30,7 @@ In addition to the built-in functions provided by the Go package the following f
|
||||||
- hasSuffix: [strings.HasSuffix](https://golang.org/pkg/strings/#HasSuffix)
|
- hasSuffix: [strings.HasSuffix](https://golang.org/pkg/strings/#HasSuffix)
|
||||||
- toUpper: [strings.ToUpper](https://golang.org/pkg/strings/#ToUpper)
|
- toUpper: [strings.ToUpper](https://golang.org/pkg/strings/#ToUpper)
|
||||||
- toLower: [strings.ToLower](https://golang.org/pkg/strings/#ToLower)
|
- toLower: [strings.ToLower](https://golang.org/pkg/strings/#ToLower)
|
||||||
|
- split: [strings.Split](https://golang.org/pkg/strings/#Split)
|
||||||
- quote: wraps a string in double quotes
|
- quote: wraps a string in double quotes
|
||||||
- buildLocation: helps to build the NGINX Location section in each server
|
- buildLocation: helps to build the NGINX Location section in each server
|
||||||
- buildProxyPass: builds the reverse proxy configuration
|
- buildProxyPass: builds the reverse proxy configuration
|
||||||
|
|
|
@ -152,6 +152,7 @@ var (
|
||||||
"buildDenyVariable": buildDenyVariable,
|
"buildDenyVariable": buildDenyVariable,
|
||||||
"getenv": os.Getenv,
|
"getenv": os.Getenv,
|
||||||
"contains": strings.Contains,
|
"contains": strings.Contains,
|
||||||
|
"split": strings.Split,
|
||||||
"hasPrefix": strings.HasPrefix,
|
"hasPrefix": strings.HasPrefix,
|
||||||
"hasSuffix": strings.HasSuffix,
|
"hasSuffix": strings.HasSuffix,
|
||||||
"trimSpace": strings.TrimSpace,
|
"trimSpace": strings.TrimSpace,
|
||||||
|
|
Loading…
Reference in a new issue