tmpl

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package tmpl provides template rendering for triggers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Render

func Render(ctx context.Context, tmplBody string, renderContext interface{}) (string, error)

func RenderFile

func RenderFile(ctx context.Context, path string, renderContext interface{}) (string, error)

RenderFile is like Render but reads the template definition from path.

func RenderTo

func RenderTo(ctx context.Context, tmplBody string, renderContext interface{}, w io.Writer) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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