templatez

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2022 License: MIT Imports: 4 Imported by: 3

Documentation

Index

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

func MustParseAndExecuteHTML(template string, data interface{}) []byte

MustParseAndExecuteHTML is like ParseAndExecuteHTML but panics on error.

func MustParseAndExecuteText

func MustParseAndExecuteText(template string, data interface{}) []byte

MustParseAndExecuteText is like ParseAndExecuteText but panics on error.

func ParseAndExecuteHTML

func ParseAndExecuteHTML(template string, data interface{}) ([]byte, error)

ParseAndExecuteHTML parses and executes a HTML template.

func ParseAndExecuteText

func ParseAndExecuteText(template string, data interface{}) ([]byte, error)

ParseAndExecuteText parses and executes a text template.

Types

This section is empty.

Jump to

Keyboard shortcuts

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