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

proposal: net: NewFlags #65926

Open
nicklasfrahm opened this issue Feb 24, 2024 · 1 comment
Open

proposal: net: NewFlags #65926

nicklasfrahm opened this issue Feb 24, 2024 · 1 comment
Labels
Milestone

Comments

@nicklasfrahm
Copy link

Proposal Details

Currently, the logic of the os-specific parsing of network flags is in a private function called linkFlags. I am proposing to create the function NewFlags insteads, which parses the os-specific flags, which would allow me to re-use the logic of that function rather than copying it into my own code. I don't see any breaking changes this would introduce.

@gopherbot gopherbot added this to the Proposal milestone Feb 24, 2024
@ianlancetaylor
Copy link
Contributor

net.NewFlags does not seem like a good name for this functionality. Also, there is no obvious meaning for this functionality on Windows, so it doesn't seem like a good fit for the net package in general.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Incoming
Development

No branches or pull requests

3 participants