render

package
v0.0.0-...-15ac34a Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2023 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

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

func New

func New() *Render

func (*Render) Header

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

func (*Render) LoadCustomTemplates

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

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

func (*Render) LoadCustomTemplatesName

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

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

LoadFromData allows to load from a data slice

func (*Render) TestFunction

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