templater

package
v0.5.23 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2024 License: MPL-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrUnsupportedFunctionType = fmt.Errorf("unsupported function type")

Functions

func ExecTemplateFunc

func ExecTemplateFunc(fun any, args []string) (string, error)

func ExecTemplateFuncWithVariables

func ExecTemplateFuncWithVariables(fun any, args []string, templateVars map[string]any, iter mp.Iterator) (string, error)

func GetFuncs

func GetFuncs() template.FuncMap

func ParseFunc

func ParseFunc(v string) (f any, args []string)

func RandInt

func RandInt(args ...any) (string, error)

func RandString

func RandString(args ...any) (string, error)

func UUID

func UUID(args ...any) (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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