Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MustRender ¶
MustRender calls `r.Render()` and panics if a non-nil error is returned
Types ¶
type Print ¶
type Print struct{}
Print prints the value with the default format for the value's type.
type Renderer ¶
A Render formats the provided value and outputs it to the writer.
var DefaultContextRenderer Renderer
type Template ¶
type Template struct {
// contains filtered or unexported fields
}
Template renders a template with the provided value
func NewTemplate ¶
NewTemplate creates a Template with the given string template
Click to show internal directories.
Click to hide internal directories.