2024-03-01 12:47:19 +01:00
|
|
|
// 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
|
|
|
|
}
|