podman
19 строк · 671.0 Байт
1/*
2Package sprig provides template functions for Go.
3
4This package contains a number of utility functions for working with data
5inside of Go `html/template` and `text/template` files.
6
7To add these functions, use the `template.Funcs()` method:
8
9t := templates.New("foo").Funcs(sprig.FuncMap())
10
11Note that you should add the function map before you parse any template files.
12
13In several cases, Sprig reverses the order of arguments from the way they
14appear in the standard library. This is to make it easier to pipe
15arguments into functions.
16
17See http://masterminds.github.io/sprig/ for more detailed documentation on each of the available functions.
18*/
19package sprig20