We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
netip
Now that netip is in the stdlib, it would be nice if go-cmp supported it by default. Today you need to add:
cmp.Comparer(func(x, y netip.Addr) bool { return x == y }), cmp.Comparer(func(x, y netip.Prefix) bool { return x == y }),
to make cmp.Diff work with types that include netip types.
cmp.Diff