pkg/net: add Path{E,Une}sape and Query{E,Une}scape
This adds the following four user functions to the net package:
PathEscapePathUnescapeQueryEscapeQueryUnescape
These functions are identical to the Go std functions by the same name in net/url.
In fact, the documentation has been copied from them.
Oh, I forgot to mention: This came up when needing to encode a password to construct a PostgreSQL URL.
Hi @eraserhd - thanks for the contribution!
Per the contribution guide, please can you link the issue where this was discussed and agreed?
@myitcv I missed the contribution guide, so now there's issue #1699.
Please mention in the commit message that it "Fixes #1695".
@mpvl I think you mean "Fixes #1699", which I've added.
@eraserhd apologies for the slowness on our side. Are you able to rebase and solve the testdata conflicts? No worries if not - I can do that on my side next week if you haven't gotten to it.
@mpvl rebased and tests pass