render

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

README

bindata.go must be generated with https://github.com/jteeuwen/go-bindata.

From the gotests root run $ go generate ./....

Or run $ go-bindata -pkg=bindata -o "internal/render/bindata/bindata.go" internal/render/templates/.

During development run $ go-bindata -pkg=bindata -o "internal/render/bindata/bindata.go" -debug internal/render/templates/ instead.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Header(w io.Writer, h *models.Header) error

func LoadCustomTemplates added in v1.5.3

func LoadCustomTemplates(dir string) error

LoadCustomTemplates allows to load in custom templates from a specified path.

func LoadCustomTemplatesName added in v1.6.0

func LoadCustomTemplatesName(name string) error

LoadCustomTemplatesName allows to load in custom templates of a specified name from the templates directory.

func LoadFromData added in v1.6.0

func LoadFromData(templateData [][]byte)

LoadFromData allows to load from a data slice

func TestFunction

func TestFunction(w io.Writer, f *models.Function, printInputs, subtests, parallel bool, templateParams map[string]interface{}) error

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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