Join GitHub today
net: Addr interface documentation unclear #16014
The Addr Network() method's comment/doc is unclear.
The Network() method as implemented by IPAddr is not the name of a given network, but the name of the protocol of the Addr implementation.
Maybe "Network Name" is the appropriate terminology for this, but it is hard to search. I don't know what it should say but I think more would be helpful.
Edits: ianlancetaylor's correction.
FWIW, I have a draft for #10624 like the following, but it's still too much explanation. Need a wordsmith.