Skip to content
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

Merged
merged 2 commits into from
Jul 9, 2024
Merged

Conversation

matzf
Copy link
Contributor

@matzf matzf commented Jul 9, 2024

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.

@matzf matzf requested review from a team, oncilla and lukedirtwalker as code owners July 9, 2024 13:17
@jiceatscion
Copy link
Contributor

This change is Reviewable

Copy link
Contributor

@oncilla oncilla left a 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: :shipit: complete! all files reviewed, all discussions resolved (waiting on @lukedirtwalker)

Copy link
Contributor

@oncilla oncilla left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:lgtm:

Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @lukedirtwalker)

Copy link
Collaborator

@lukedirtwalker lukedirtwalker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:lgtm:

Reviewed 173 of 173 files at r1, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @matzf)

matzf added 2 commits July 9, 2024 15:48
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.
@matzf matzf force-pushed the addr-must-parse branch from b447d01 to 7c48f93 Compare July 9, 2024 13:48
Copy link
Collaborator

@lukedirtwalker lukedirtwalker left a 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: :shipit: complete! all files reviewed, all discussions resolved (waiting on @matzf)

@matzf matzf merged commit 68bd2bc into master Jul 9, 2024
5 checks passed
@matzf matzf deleted the addr-must-parse branch July 9, 2024 15:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants