On Thu, Apr 30, 2020 at 11:09 AM Brian Candler <b.cand...@pobox.com> wrote: > > In a URL, the percent sign should appear as %25 (% marks the start of a > hex-encoded character) > https://play.golang.org/p/gMC1tdpJER4 > > The URL as shown is invalid.
I *think* you are saying that the u.Path field should use %25 rather than plain %. But as the documentation says (https://golang.org/pkg/net/url/#URL) the Path field is the decoded form. If you simply print the URL, you will see %25. Consider https://play.golang.org/p/Z0eUYfkm3PR. If you mean something else, can you explain? Thanks. Ian -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/CAOyqgcXciAhj1Ommek%2B3-NYr54wqUnnAPyjk4fGg7uE45UZ_Gg%40mail.gmail.com.