Registry / utility / benbjohnson-tmpl

benbjohnson-tmpl

JSON →
library1.1.0gogounverified

A Go package for compiling and executing text/template templates with additional features.

go get github.com/benbjohnson/tmpl
INSTALL
IMPORT
SIG · BENBJOHNSON-TMPL
B
benbjohnson-tmpl
utilitygov1.1.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.

tmpl
github.com/benbjohnson/tmpl

Compiles and executes a simple template.

package main import ( "fmt" "github.com/benbjohnson/tmpl" ) func main() { t := tmpl.Must(tmpl.New("example").Parse("Hello, {{.Name}}!")) fmt.Println(t.ExecuteString(map[string]string{"Name": "World"})) }
Debug
Known issues

No known issues recorded.

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

No dependency data recorded yet.

Agent activity
9 hits · last 30 days
node
8
OpenAI (training)
1
Resources
benbjohnson-tmpl — go get benbjohnson-tmpl · libregistry