template/funcs.go
func regexMatch(re, s string) (bool, error) {
	compiled, err := regexp.Compile(re)
	if err != nil {
		return false, err
	}
	return compiled.MatchString(s), nil
}
func regexMatch(re, s string) (bool, error) {
	compiled, err := regexp.Compile(re)
	if err != nil {
		return false, err
	}
	return compiled.MatchString(s), nil
}
func regexMatch ( re , s string ) ( bool , error ) { compiled , err := regexp . Compile ( re ) if err != nil { return false , err } return compiled . MatchString ( s ) , nil }
// regexMatch returns true or false if the string matches
// the given regular expression
regexMatch returns true or false if the string matches the given regular expression