html/template package
Canonical docs for HTML templating, contextual autoescaping, template composition, and safe output types.
Canonical docs for HTML templating, contextual autoescaping, template composition, and safe output types.
- Author: Go Team
- Authority: primary
- Kind: package-doc
- URL: https://pkg.go.dev/html/template
What it covers
- template parsing and execution
- contextual autoescaping
- template functions and composition
Why authoritative
Official package documentation for Go’s HTML-safe templating package.
Use when
- how should I use html/template in Go
- how does Go template escaping work
- how should templates be composed in Go
Keywords
- html/template, templates, autoescaping, template inheritance, FuncMap