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