template

package module
v0.68.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 16, 2025 License: Apache-2.0 Imports: 0 Imported by: 0

README

Overview

This package contains the same code as Go's text/template and html/template packages, patched to avoid disabling dead code elimination.

Code changes

The only functional change is that you can't call methods. The types like FuncMap or HTML are aliases of standard library types, so there is no conflict when using one with the other.

Organization

The text directory contains the code from text/template, the html directory contains the code from html/template.

Code Generation

The code in this directory can be re-generated using invoke -e pkg-template.generate from the root of the repository.

Go version

The code is from the Go version pinned in the .go-version file.

Documentation

Overview

Package template contains patched code from `text/template` and `html/template`.

Directories

Path Synopsis
Package template (html/template) implements data-driven templates for generating HTML output safe against code injection.
Package template (html/template) implements data-driven templates for generating HTML output safe against code injection.
internal
fmtsort
Package fmtsort provides a general stable ordering mechanism for maps, on behalf of the fmt and text/template packages.
Package fmtsort provides a general stable ordering mechanism for maps, on behalf of the fmt and text/template packages.
Package template implements data-driven templates for generating textual output.
Package template implements data-driven templates for generating textual output.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL