templates

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(ctx pgsgo.Context, tpl *template.Template)

Register adds a render function to the template

func Template

func Template(ctx pgsgo.Context, lang string) *template.Template

Types

type ArrayData

type ArrayData struct {
	SliceName string
	IndexName string
	ItemName  string
	SliceType string
	Getter    string
	Key       string
}

ArrayData used to fill arrayTpl

Jump to

Keyboard shortcuts

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