Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithTemplateService ¶
func WithTemplateService(ts templateprovider.TemplateService) func(sp *StringProcessor)
Types ¶
type StringProcessor ¶
type StringProcessor struct {
// contains filtered or unexported fields
}
func NewStringProcessor ¶
func NewStringProcessor(options ...func(stringProcessor *StringProcessor)) *StringProcessor
func (*StringProcessor) Render ¶
func (sp *StringProcessor) Render(text string, withVariables map[string]interface{}) (string, error)
func (*StringProcessor) RenderSliceOfStrings ¶
func (sp *StringProcessor) RenderSliceOfStrings(text []string, variables map[string]interface{}) ([]string, error)
Click to show internal directories.
Click to hide internal directories.