Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
net: JoinHostPort() enclose IPv6 in square brackets even if host is already in this format #20470
What version of Go are you using (
Note that JoinHostPort doesn't do any sanitization of your host (e.g. https://play.golang.org/p/cbnk8RrQNy).
The existing docs say exactly what it does:
I'm not sure there's anything to do here.