Documentation
¶
Overview ¶
Package statictemplate implements a code generator for converting text or html/template to Go code.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type TranslateInstruction ¶
TranslateInstruction specifies a single function to be generated from a template
type Translator ¶
Translator converts a template with a set of instructions to Go code
func (*Translator) Translate ¶
func (t *Translator) Translate(pkg string, instructions []TranslateInstruction) ([]byte, error)
Translate converts a template with a set of instructions to Go code
Click to show internal directories.
Click to hide internal directories.