text/expander.go

12 lines
282 B
Go
Raw Normal View History

// Copyright (c) 2024 Celestino Amoroso (celestino.amoroso@gmail.com).
// All rights reserved.
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
}