This pr adds a new option Filter, which can be used like this
d, err := diff.NewDiffer(diff.Filter(func (path []string, parent reflect.Type, field reflect.StructField) bool {
// return true to descend into the field, false to ignore it
}))
The parent argument will contain the type information for the struct being examined, and the field argument will contain the struct field being examined.
This pr adds a new option
Filter
, which can be used like thisThe
parent
argument will contain the type information for the struct being examined, and thefield
argument will contain the struct field being examined.Closes #37