func LikeCompare(a, b string) (value.BoolValue, bool) {
	// Do we want to always do this replacement?   Or do this at parse time or config?
	if strings.Contains(b, "%") {
		b = strings.Replace(b, "%", "*", -1)
	}
	match, err := glob.Match(b, a)
	if err != nil {
		return value.BoolValueFalse, false
	}
	if match {
		return value.BoolValueTrue, true
	}
	return value.BoolValueFalse, true
}
// LikeCompare takes two strings and evaluates them for like equality
LikeCompare takes two strings and evaluates them for like equality
// LikeCompare takes two strings and evaluates them for like equality
func LikeCompare(a, b string) (value.BoolValue, bool) {
	if strings.Contains(b, "%") {
		b = strings.Replace(b, "%", "*", -1)
	}
	match, err := glob.Match(b, a)
	if err != nil {
		return value.BoolValueFalse, false
	}
	if match {
		return value.BoolValueTrue, true
	}
	return value.BoolValueFalse, true
}
func LikeCompare ( a , b string ) ( value . BoolValue , bool ) { if strings . Contains ( b , " " ) { b = strings . Replace ( b , " " , " " , - 1 ) } match , err := glob . Match ( b , a ) if err != nil { return value . BoolValueFalse , false } if match { return value . BoolValueTrue , true } return value . BoolValueFalse , true }
LikeCompare takes two strings and evaluates them for like equality
LikeCompare takes two strings and evaluates them for like equality
// Do we want to always do this replacement?   Or do this at parse time or config?