Documentation
¶
Overview ¶
Package tmpl renders Go and mustache templates that generate random values for every execution. It is used by yo to build requests whose URL, headers and body vary from call to call.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RenderString ¶
RenderString parses and renders s in a single call.
Types ¶
type Template ¶
type Template struct {
// contains filtered or unexported fields
}
Template is a compiled yo template. Rendering it produces a fresh random document. Non-template inputs are rendered verbatim.
func (*Template) RenderString ¶
RenderString is a convenience wrapper around Render.
Click to show internal directories.
Click to hide internal directories.