template

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FuncMap

type FuncMap map[string]interface{}

type Template

type Template interface {
	Name() string

	Parse(string) (Template, error)
	ParseNamed(string, string) (Template, error)

	Funcs(funcMap FuncMap) Template

	Execute(io.Writer, interface{}) error
	ExecuteTemplate(io.Writer, string, interface{}) error
}

func New

func New(mode string) (Template, error)

Jump to

Keyboard shortcuts

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