render

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 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

This section is empty.

Types

type Render added in v1.7.0

type Render struct {
	// contains filtered or unexported fields
}

func New added in v1.7.0

func New() *Render

func (*Render) Header added in v1.7.0

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

func (*Render) LoadCustomTemplates added in v1.7.0

func (r *Render) LoadCustomTemplates(dir string) error

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

func (*Render) LoadCustomTemplatesName added in v1.7.0

func (r *Render) LoadCustomTemplatesName(name string) error

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

func (*Render) LoadFromData added in v1.7.0

func (r *Render) LoadFromData(templateData [][]byte)

LoadFromData allows to load from a data slice

func (*Render) TestFunction added in v1.7.0

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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