templates

package
v0.0.0-...-e81234b Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Funcs

func Funcs() template.FuncMap

Funcs provides some general usefule template helpers.

func Load

func Load(cfg *config.Config) *template.Template

Load loads the template to make it parseable.

func Reader

func Reader(cfg *config.Config, name string, data any) io.Reader

Reader simply provides an io.Reader for direct usage.

func String

func String(cfg *config.Config, name string, data any) string

String renders the template and returns a string.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳