templates

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ValidatorTypeTpl      = "validatorType"
	ValidatorMethodTpl    = "validatorMethod"
	StringZeroSnippetTpl  = "stringZeroSnippet"
	NumericZeroSnippetTpl = "numericZeroSnippet"
	PointerZeroSnippetTpl = "pointerZeroSnippet"
)

Variables

This section is empty.

Functions

func Execute

func Execute(templateName string, data any) ([]byte, error)

func ExecuteTemplate

func ExecuteTemplate(tpl *template.Template, data any) ([]byte, error)

func Must

func Must[T any](t T, e error) T

Types

This section is empty.

Jump to

Keyboard shortcuts

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