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.