// Execute template, returns empty string in case of errors
Execute template, returns empty string in case of errors
// Execute template returns empty string in case of errors
func Execute(logger *zap.Logger, tpl *template.Template, data interface{}) string {
	var res strings.Builder
	if err := tpl.Execute(&res, data); err != nil {
		logger.Error("error executing template", zap.Error(err))
		return ""
	}
	return res.String()
}
func Execute ( logger * zap . Logger , tpl * template . Template , data interface { } ) string { var res strings . Builder if err := tpl . Execute ( & res , data ) ; err != nil { logger . Error ( " " , zap . Error ( err ) ) return " " } return res . String ( ) }
Execute template, returns empty string in case of errors
Execute template returns empty string in case of errors