func FiltersFromArgs(filterVals []value.Value) []string {
	filters := make([]string, 0, len(filterVals))
	for _, fv := range filterVals {
		switch fv := fv.(type) {
		case value.Slice:
			for _, fv := range fv.SliceValue() {
				matchKey := fv.ToString()
				if strings.Contains(matchKey, "%") {
					matchKey = strings.Replace(matchKey, "%", "*", -1)
				}
				filters = append(filters, matchKey)
			}
		case value.StringValue:
			matchKey := fv.ToString()
			if strings.Contains(matchKey, "%") {
				matchKey = strings.Replace(matchKey, "%", "*", -1)
			}
			filters = append(filters, matchKey)
		}
	}
	return filters
}
// FilterFromArgs given set of values
FilterFromArgs given set of values
// FilterFromArgs given set of values
func FiltersFromArgs(filterVals []value.Value) []string {
	filters := make([]string, 0, len(filterVals))
	for _, fv := range filterVals {
		switch fv := fv.(type) {
		case value.Slice:
			for _, fv := range fv.SliceValue() {
				matchKey := fv.ToString()
				if strings.Contains(matchKey, "%") {
					matchKey = strings.Replace(matchKey, "%", "*", -1)
				}
				filters = append(filters, matchKey)
			}
		case value.StringValue:
			matchKey := fv.ToString()
			if strings.Contains(matchKey, "%") {
				matchKey = strings.Replace(matchKey, "%", "*", -1)
			}
			filters = append(filters, matchKey)
		}
	}
	return filters
}
func FiltersFromArgs ( filterVals [ ] value . Value ) [ ] string { filters := make ( [ ] string , 0 , len ( filterVals ) ) for _ , fv := range filterVals { switch fv := fv . ( type ) { case value . Slice : for _ , fv := range fv . SliceValue ( ) { matchKey := fv . ToString ( ) if strings . Contains ( matchKey , " " ) { matchKey = strings . Replace ( matchKey , " " , " " , - 1 ) } filters = append ( filters , matchKey ) } case value . StringValue : matchKey := fv . ToString ( ) if strings . Contains ( matchKey , " " ) { matchKey = strings . Replace ( matchKey , " " , " " , - 1 ) } filters = append ( filters , matchKey ) } } return filters }
FilterFromArgs given set of values
FilterFromArgs given set of values