templateutils

package
v0.0.0-...-0c6c348 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package templateutils is a package that provides utility functions for loading and using templates.

Index

Constants

This section is empty.

Variables

View Source
var ErrParseTemplate = errors.New("failed to parse template")

ErrParseTemplate is an error that occurs when template parsing fails.

Functions

func LoadTemplates

func LoadTemplates(templateFS embed.FS) map[string]*template.Template

LoadTemplates loads all the templates from the given embed.FS and returns a map of templates. Panics if any error occurs.

Types

This section is empty.

Jump to

Keyboard shortcuts

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