inetaf/netaddr

add IP.Unspecified?

bradfitz opened this issue · 2 comments

I was just porting some code from net.IP to netaddr.IP and discovered we don't have netaddr.IP.IsUnspecified like std.

Add it?

/cc @danderson @josharian @mdlayher

+1 from me, would save me a couple of ip == net.IPv6Unspecified() anyway.

Sure. Make sure the docs make it very clear how IsUnspecified and IsZero differ.