Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TemplateMiddleware ¶ added in v0.3.0
type TemplateMiddleware struct {
// contains filtered or unexported fields
}
func NewTemplateMiddleware ¶ added in v0.3.0
func NewTemplateMiddleware( templateStrings map[types.FieldName]string, ) (*TemplateMiddleware, error)
NewTemplateMiddleware creates a new template firmware used to process individual objects.
It will render the template for each object and return a single field.
TODO(manuel, 2023-02-02) Add support for passing in custom funcmaps See #110 https://github.com/go-go-golems/glazed/issues/110
func (*TemplateMiddleware) Close ¶ added in v0.3.1
func (rgtm *TemplateMiddleware) Close(ctx context.Context) error
Click to show internal directories.
Click to hide internal directories.