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

net/url: Why make struct Userinfo's username and password immutable? #31853

Closed
shiduanguang opened this issue May 6, 2019 · 1 comment
Closed

Comments

@shiduanguang
Copy link

// The Userinfo type is an immutable encapsulation of username and

I need to hide username and password of an url when log it.
So, I use u, err := url.Parse(rawurl), and want to change u.User.
But url.Userinfo username and password is not exported.

@shiduanguang
Copy link
Author

@golang golang locked and limited conversation to collaborators May 5, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants