templates

package
v0.0.0-...-fa4fb7d Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Template

func Template(params pgs.Parameters) map[string][]*template.Template

Types

type CodeFormatFn

type CodeFormatFn func(in io.Reader, out io.Writer) error

func CodeFormatterFor

func CodeFormatterFor(tpl *template.Template) CodeFormatFn

type FilePathFn

type FilePathFn func(f pgs.File, ctx pgsgo.Context, tpl *template.Template) *pgs.FilePath

func FilePathFor

func FilePathFor(tpl *template.Template) FilePathFn

type RegisterFn

type RegisterFn func(tpl *template.Template, params pgs.Parameters)

type WrapTemplate

type WrapTemplate struct {
	pgs.Template
	*pgs.ModuleBase
	Format bool
}

func (*WrapTemplate) Execute

func (wt *WrapTemplate) Execute(w io.Writer, data interface{}) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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