Registry / utility / masterminds-sprig-v3

masterminds-sprig-v3

JSON →
library3.3.0gogounverified

Provides over 100 commonly used template functions for Go templates.

go get github.com/Masterminds/sprig/v3
INSTALL
IMPORT
SIG · MASTERMINDS-SPRIG-
M
masterminds-sprig-v3
utilitygov3.3.0
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/v3

Uses Sprig's upper function in a template.

package main import ( "bytes" "text/template" "github.com/Masterminds/sprig/v3" ) func main() { tpl := template.Must(template.New("test").Funcs(sprig.FuncMap()).Parse("{{ upper \"hello\" }}")) var buf bytes.Buffer tpl.Execute(&buf, nil) println(buf.String()) // HELLO }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
3.3.0latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

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