renderer

package
v0.0.0-...-cc7cbc4 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Renderer

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

func New

func New(dir string) Renderer

func (Renderer) RenderTemplate

func (r Renderer) RenderTemplate(w io.Writer, templateName TemplateName, data interface{}) error

type TemplateName

type TemplateName string
const (
	TemplateNameIndex   TemplateName = "index"
	TemplateNameSuccess TemplateName = "success"
)

Jump to

Keyboard shortcuts

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