Documentation ¶
Index ¶
- func MustExecuteHTML(template *htmltemplate.Template, data interface{}) []byte
- func MustExecuteText(template *texttemplate.Template, data interface{}) []byte
- func MustParseAndExecuteHTML(template string, data interface{}) []byte
- func MustParseAndExecuteText(template string, data interface{}) []byte
- func ParseAndExecuteHTML(template string, data interface{}) ([]byte, error)
- func ParseAndExecuteText(template string, data interface{}) ([]byte, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MustExecuteHTML ¶
func MustExecuteHTML(template *htmltemplate.Template, data interface{}) []byte
MustExecuteHTML executes a HTML template, panics on error.
func MustExecuteText ¶
func MustExecuteText(template *texttemplate.Template, data interface{}) []byte
MustExecuteText executes a text template, panics on error.
func MustParseAndExecuteHTML ¶
MustParseAndExecuteHTML is like ParseAndExecuteHTML but panics on error.
func MustParseAndExecuteText ¶
MustParseAndExecuteText is like ParseAndExecuteText but panics on error.
func ParseAndExecuteHTML ¶
ParseAndExecuteHTML parses and executes a HTML template.
func ParseAndExecuteText ¶
ParseAndExecuteText parses and executes a text template.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.