## 1. What is SprigX?
SprigX is a suite of extensions to the sprig library (Go docs).
They provide functions that offer more enriched use cases and domain-specific data.
Tip

If you are reading this README on the Go Module Directory documentation (https://pkg.go.dev/r00t2.io/goutils/tplx/sprigx) or the directory landing page (https://git.r00t2.io/r00t2/go_goutils/src/branch/master/tplx/sprigx), it may not render correctly.

Be sure to view it at properly via the AsciiDoc rendering or by downloading and viewing the HTML version.

## 2. How do I Use SprigX?
The same way you would `sprig`!
Like this.
``` rouge 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(), ) ) ```
They can even be combined/used together.
Like this.
``` rouge 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(), ) */ ```
Or, as a convenience, you can simply use the [`sprigx.CombinedTxtFuncMap`](#lib_cmbtfmap) and/or [`sprigx.CombinedHtmlFuncMap`](#lib_cmbhfmap) functions.
If a `