-
Notifications
You must be signed in to change notification settings - Fork 162
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pkg/addr: add missing MustParseIA,AS,ISD functions #4564
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 173 of 173 files at r1, all commit messages.
Reviewable status: complete! all files reviewed, all discussions resolved (waiting on @lukedirtwalker)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: complete! all files reviewed, all discussions resolved (waiting on @lukedirtwalker)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 173 of 173 files at r1, all commit messages.
Reviewable status: complete! all files reviewed, all discussions resolved (waiting on @matzf)
Providing MustParseX along with ParseX is a typical pattern in Go. There was already addr.MustParseAddr, but MustParseIA and MustParseAS were only defined as helper function in the internal xtest package. Define addr.MustParseIA, MustParseAS, MustParseISD to replace the definitions in the xtest package. Remove the rarely used plural forms, xtest.MustParseIAs/ASes; simply typing this out instead seems perfectly appropriate.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 5 of 5 files at r2, all commit messages.
Reviewable status: complete! all files reviewed, all discussions resolved (waiting on @matzf)
Providing MustParseX along with ParseX is a typical pattern in Go. There was already addr.MustParseAddr (since #4346), but MustParseIA and MustParseAS were only defined as helper function in the internal xtest package.
Define addr.MustParseIA, MustParseAS, MustParseISD to replace the definitions in the xtest package.
Remove the rarely used plural forms, xtest.MustParseIAs/ASes; simply typing this out instead seems perfectly appropriate.