We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
http://play.golang.org/p/9zinaw70z8
u, err := url.Parse("localhost:8080")
here u is &url.URL{Scheme:"localhost", Opaque:"8080"} should be &url.URL{Host:"localhost:8080"}
&url.URL{Scheme:"localhost", Opaque:"8080"}
&url.URL{Host:"localhost:8080"}
Will fix.
The text was updated successfully, but these errors were encountered:
Not a bug. url.Parse parses URLs. That's not a URL. A URL starts with a scheme.
url.Parse
If you want to split a host and a port there is http://golang.org/pkg/net/#SplitHostPort
Sorry, something went wrong.
No branches or pull requests
http://play.golang.org/p/9zinaw70z8
here u is
&url.URL{Scheme:"localhost", Opaque:"8080"}
should be
&url.URL{Host:"localhost:8080"}
Will fix.
The text was updated successfully, but these errors were encountered: