templates

package
v0.4.6 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Golang = &TemplateBox{rice.MustFindBox("golang")}

Functions

This section is empty.

Types

type Option

type Option func(funcs template.FuncMap)

type TemplateBox

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

func (*TemplateBox) Execute

func (t *TemplateBox) Execute(tplName string, data interface{}, opts ...Option) (string, error)

Jump to

Keyboard shortcuts

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