log/filtered/filtered.go
func RestrictFilter(fieldName string, filter Filter) Filter {
	return FilterFunc(func(k string, v interface{}) interface{} {
		if fieldName == k {
			return filter.Filter(k, v)
		}

		return v
	})
}
func RestrictFilter(fieldName string, filter Filter) Filter {
	return FilterFunc(func(k string, v interface{}) interface{} {
		if fieldName == k {
			return filter.Filter(k, v)
		}

		return v
	})
}
// RestrictFilter restricts the filter to only work on a certain field