func validateTemplate()

in lib/notifiers/notifiers.go [455:463]


func validateTemplate(s string) error {
	_, err := template.New("").Funcs(template.FuncMap{
		"replace": func(s, old, new string) string {
			return strings.ReplaceAll(s, old, new)
		},
	}).Parse(s)

	return err
}