template

package
v0.3.19 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2023 License: GPL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetTxtFunc

func GetTxtFunc() map[string]any

GetTxtFunc returns a defaults list of methods for text templating

func New

func New(tpl string, data interface{}) ([]byte, error)

New is called to render a template

func NewWithFuncs

func NewWithFuncs(tpl string, methods template.FuncMap, params interface{}) ([]byte, error)

NewWithFuncs renders a template with custom methods

Types

This section is empty.

Jump to

Keyboard shortcuts

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