stringprocessor

package
v0.0.16 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 22, 2024 License: MIT Imports: 3 Imported by: 0

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL