# What is SprigX? SprigX are extensions to [the `sprig` library](https://masterminds.github.io/sprig/) ([Go docs](https://pkg.go.dev/github.com/Masterminds/sprig/v3)). They provide functions that offer more enriched use cases and domain-specific data. # How do I Use SprigX? package main import ( htmlTplLib "html/template" txtTplLib "text/template" "r00t2.io/goutils/tplx/sprigx" ) var ( txtTpl *txtTplLib.Template = txtTplLib. New(""). Funcs( sprigx.TxtFuncMap(), ) htmlTpl *htmlTplLib.Template = htmlTplLib. New(""). Funcs( sprigx.HtmlFuncMap(), ) ) package main import ( "text/template" "github.com/Masterminds/sprig/v3" "r00t2.io/goutils/tplx/sprigx" ) var txtTpl *template.Template = template. New(""). Funcs( sprigx.TxtFuncMap(), ). Funcs( sprig.TxtFuncMap(), ) // Or: /* var txtTpl *template.Template = template. New(""). Funcs( sprig.TxtFuncMap(), ). Funcs( sprigx.TxtFuncMap(), ) */ If a `