tmpl

package
v0.0.0-...-260b785 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateGoFuncMaps

func CreateGoFuncMaps(auth authModule) template.FuncMap

CreateGoFuncMaps creates the helper functions that can be used in go templates

func ExecTemplate

func ExecTemplate(ctx context.Context, tmpl *template.Template, object map[string]interface{}) (string, error)

ExecTemplate executes a template and returns the string result

func GoTemplate

func GoTemplate(ctx context.Context, tmpl *template.Template, format, token string, claims, params interface{}) (interface{}, error)

GoTemplate executes a go template

Types

This section is empty.

Jump to

Keyboard shortcuts

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