templates

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2025 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Embed embed.FS

Functions

func LoadTemplate

func LoadTemplate(name string) (*template.Template, error)

LoadTemplate returns a parsed template from the embedded FS.

func LoadTemplateFromFS added in v0.0.2

func LoadTemplateFromFS(fs afero.Fs, name string) (*template.Template, error)

LoadTemplateFromFS returns a parsed template from an afero filesystem.

func MustLoadTemplate

func MustLoadTemplate(name string) *template.Template

MustLoadTemplate calls LoadTemplate but panics if parsing fails.

Types

This section is empty.

Jump to

Keyboard shortcuts

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