Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (go version)?
All
Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (go env)?
All
What did you do?
Repro case:
https://play.golang.org/p/etsLIZv_Oz8
What did you expect to see?
An error due to improper "host:port" syntax.
What did you see instead?
An empty port in the result and no error.