net: Addr and Interface documentation is not clear #31276
Labels
Documentation
Issues describing a change to documentation.
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
What version of Go are you using (
go version
)?I also checked older versions – they have the same problem.
What did you do?
What did you expect to see?
Addresses without network mask.
What did you see instead?
Addresses with network mask.
I think
net.Addr
andnet.Interface.Addrs()
documentation should mention that. Probably the best way is to say that it returns*IPNet
s.The text was updated successfully, but these errors were encountered: