render

package
v2.21.3 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2025 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const NoValue = "<no value>"

NoValue is used when a template variable is not found. This string is not exported as a const from the text/template.

Variables

This section is empty.

Functions

func GoTemplate

func GoTemplate(in string, payload types.MessagePayload, extraFuncs template.FuncMap) (string, error)

GoTemplate attempts to substitute the given payload into the given template using Go's templating syntax. TODO: memoize templates for memory efficiency?

Types

This section is empty.

Jump to

Keyboard shortcuts

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