I too was having this problem when using go's url.QueryEscape() function to encode an ssh key. The problem is that spaces are encoded as "+" so to get around this you can do something like the following:
strings.Replace(url.QueryEscape(sshKey), "+", "%20", 1)
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.