mirror of https://github.com/knative/pkg.git
* Upgrade go-cmp and add new diff options to kmp * Upgrades go-cmp to master * Adds new kmp diff options (FieldListReporter and ShortDiffReporter) * Update comments FieldListReporter can be used to programatically find what fields differ between two objects. This is useful in webhook object validation. ShortDiffReporter was added as the default behavior for cmp.Diff is to provide more context. The ShortDiff reporter is useful for use on API fields where context is not necessarily as valuable. This keeps the output short for use in log and error messages. * Change from override to constraint * Code Review Comments * Improve test coverage * Use JSON field names when present No longer lowercase golang field names. * Strip JSON non-key tag content |
||
|---|---|---|
| .. | ||
| diff.go | ||
| diff_test.go | ||
| doc.go | ||
| reporters.go | ||
| reporters_test.go | ||