Documentation ¶
Overview ¶
Package extensions implements a system for working with extended options.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetTransformer ¶
func SetTransformer(extensionName string, f Transformer)
SetTransformer sets the transformer function for the given extension name
Types ¶
type Transformer ¶
type Transformer func(payload interface{}) interface{}
Transformer functions for transforming payloads of an extension option into something that can be rendered by a template.
Click to show internal directories.
Click to hide internal directories.