render

package
v0.1.16 Latest Latest
Warning

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

Go to latest
Published: May 18, 2022 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

func LoadCustomTemplates(dir string) error

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

func LoadCustomTemplatesName

func LoadCustomTemplatesName(name string) error

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

func LoadFromData

func LoadFromData(templateData [][]byte)

LoadFromData allows to load from a data slice

func Reset

func Reset()

func TestFunction

func TestFunction(w io.Writer, f *models.Function, printInputs, subtests, named, 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