tmpl

package
v4.2.1 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2024 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute(t *testing.T, tmpdir, namePattern, tmplPath string, values any) string

Execute creates a file in tmpdir based on namePattern whose contents are the result of executing the Go template in tmplPath, over the struct passed in the values argument. Returns the full path of the created file. The created file will be automatically removed at the end of the test t unless t fails.

Types

This section is empty.

Jump to

Keyboard shortcuts

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