Documentation ¶
Index ¶
- func Buffered(w io.Writer, content string, data any)
- func BufferedE(w io.Writer, content string, data any) error
- func Funcs(colors charm.ColorScheme) template.FuncMap
- func Print(content string, data any)
- func PrintE(content string, data any) error
- func Render(w io.Writer, content string, data any) error
- func String(content string, data any) string
- func StringE(content string, data any) (string, error)
- type FuncMap
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Buffered ¶
Buffered executes a template and writes the result to the given writer once. If an error occurs, it is written to the writer instead.
func Print ¶
Print executes a template and prints it directly to stdout. If an error occurs, it is written to stderr as well.
Types ¶
Click to show internal directories.
Click to hide internal directories.