text/expander.go

9 lines
186 B
Go
Raw Normal View History

2024-02-16 15:56:50 +01:00
// expander.go
package text
func ExpandStringTemplate(ctx ExpanderContext, template string) (result string, err error) {
AddBaseFuncs(ctx)
result, err = Scan(ctx, template)
return
}