This gives us more readable output. Both because it gives just a diff, rather than the whole object as a string, but also as it captures differences between the objects that thir string representation does not. In particular, if a field is an interface I, and T implements I, then an object of type T and a pointer to the same object can both be assigned to a variable of type I. Either way, the JSON representation is the same, but the objects (correctly) do not compare equal. This is a pain to debug. Signed-off-by: Tom Gundersen <teg@jklm.no> |
||
|---|---|---|
| .. | ||
| fedora30 | ||
| fedora31 | ||
| fedora32 | ||
| fedoratest | ||
| rhel81 | ||
| rhel82 | ||
| test | ||
| distro.go | ||
| distro_test.go | ||
| osrelease_test.go | ||