Registry / utility / masterminds-sprig

masterminds-sprig

JSON →
library2.22.0+incompatiblegogounverified

Sprig provides over 100 commonly used template functions for Go templates.

go get github.com/Masterminds/sprig
INSTALL
IMPORT
SIG · MASTERMINDS-SPRIG
M
masterminds-sprig
utilitygov2.22.0+incompatible
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

sprig
github.com/Masterminds/sprig

Use Sprig's upper function in a template

package main import ( "text/template" "os" "github.com/Masterminds/sprig" ) func main() { tpl := template.Must(template.New("").Funcs(sprig.FuncMap()).Parse("{{ upper \"hello\" }}")) tpl.Execute(os.Stdout, nil) }
Debug
Known issues
gotchaVersion 2.22.0+incompatible indicates the module uses a major version >1 without a /v2 path, which may cause import issues with Go modules.
fix
Use the latest v3 version (github.com/Masterminds/sprig/v3) if possible, or ensure your go.mod requires the correct version.
affects: >=2.0.0 <3.0.0
Upgrade
Version history
2.22.0+incompatiblelatest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
masterminds-sprig — go get masterminds-sprig · libregistry