{"repo":"Masterminds/sprig","free":true,"listed":false,"github":"https://github.com/Masterminds/sprig","clone":"git clone https://github.com/Masterminds/sprig.git","description":"Useful template functions for Go templates.","language":"Go","stars":4737,"topics":["go","template","templates"],"license":"MIT","category":"saas-starters-boilerplates","readme_excerpt":"Sprig: Template functions for Go templates The Go language comes with a built-in template language, but not very many template functions. Sprig is a library that provides more than 100 commonly used template functions. It is inspired by the template functions found in Twig and in various JavaScript libraries, such as underscore.js. IMPORTANT NOTES Sprig leverages mergo to handle merges. In its v0.3.9 release, there was a behavior change that impacts merging template functions in sprig. It is currently recommended to use v0.3.10 or later of that package. Using v0.3.9 will cause sprig tests to fail. Package Versions There are two active major versions of the sprig package. v3 is currently stable release series on the master branch. The Go API should remain compatible with v2, the current stable version. Behavior change behind some functions is the reason for the new major version. v2 is the previous stable release series. It has been more than three years since the initial release of v2. You can read the documentation and see the code on the release-2 branch. Bug fixes to this major version will continue for some time. Usage Template developers : Please use Sprig's function documentation for detailed instructions and code snippets for the 100 template functions available. Go developers : If you'd like to include Sprig as a library in your program, our API documentation is available at GoDoc.org. For standard usage, read on. Load the Sprig library To load the Sprig FuncMap : Cal","default_branch":null,"files":null,"tree":[],"storefront":"/r/Masterminds","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/Masterminds/sprig/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}