Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
net: IPMask docs aren't great #28957
The docs for
That's, uh, pretty brief.
We should say more because as-is my first reaction would be, "Well, then why don't I juse use an IP address?"
For Go 1.13 at least, but Go 1.12 would be fine too.
Yup, please ask and report back the original author the reason why? :) I can guess that initially he/she wanted some functionality that may interact with external (e.g., IP address prefixes via network attachments; now the package implements it as network and address identification API), but gave up working for more important issues.
We probably should revisit the necessity of IPMask in #18804. Basically, we need only two properties for forming the graph called IP network; address prefixes assigned to each edge and addresses assigned to the edge mount points on each vertex. Having more than two types might be overkill.