Discover Packages
github.com/nickheyer/icebath
pkg
utils
template
package
Version:
v1.2.1
Opens a new window with list of versions in this module.
Published: Nov 26, 2026
License: MIT
Opens a new window with license information.
Imports: 7
Opens a new window with list of imports.
Imported by: ? modules, 0 packages
The first number is the count of modules that contain a package that imports this one.
The module count is a better indicator of popularity than the package count.
A module with 100 importing packages is counted only once instead of 100 times,
reflecting the fact that the choice to use the package was likely made only once,
not 100 times.
A '?' means that the value hasn't been computed yet.
Opens a new window with list of known importers.
Documentation
Documentation
¶
Placeholder names of a template in order of first appearance, nested placeholders included
Text of a template with each placeholder replaced by its value in values
type MissingError struct{ Name string }
Placeholder whose name has no value
The placeholder that has no value
Placeholder whose format spec does not suit its value, or does not parse once its nested placeholders are filled in
The placeholder, its spec and what is wrong with them
type SyntaxError struct {
Offset int
Msg string
}
Template text that does not parse, with the byte offset where the problem starts
The problem and where it is
Text with {name} and {name:spec} placeholders, parsed once and safe to render from many goroutines
Template parsed from text where {name} and {name:spec} are placeholders and {{ and }} stand for literal braces
Names of the placeholders in order of first appearance, nested placeholders included; shared slice, callers must not modify it
Text with each placeholder replaced by the value lookup gives for its name, formatted under its spec
Source Files
¶
Click to show internal directories.
Click to hide internal directories.