package strutil

import (
	
	
	
)

// Template executes the given template text on data, writing the result to w.
func ( io.Writer,  string,  any) error {
	 := template.New("top")
	.Funcs(templateFuncs)
	template.Must(.Parse())

	return .Execute(, )
}

var templateFuncs = template.FuncMap{
	"trim": strings.TrimSpace,
}