Exposing functions PathEscape and PathUnescape in net/url

667 views
Skip to first unread message

r.w.jo...@gmail.com

unread,
Dec 16, 2015, 1:47:26 PM12/16/15
to golang-dev
Hello,

When the net/url package was update for Go 1.5, was consideration given to adding functions PathEscape and PathUnescape to the package net/url?  The functionality is already present (see func (*URL) EscapedPath), but not exposed in a usable manner.  The functions would also be a natural complement to QueryEscape and QueryUnescape.

Thank-you.

Nigel Tao

unread,
Dec 24, 2015, 2:06:17 AM12/24/15
to Robert W. Johnstone, Brad Fitzpatrick, golang-dev
I don't think any consideration was given. It would have been useful
for e.g. https://go-review.googlesource.com/#/c/16859/5/webdav/webdav.go
although that code as is also works.

Let's see what bradfitz thinks (after Go 1.6 is released).

Brad Fitzpatrick

unread,
Dec 24, 2015, 11:03:31 AM12/24/15
to Nigel Tao, Robert W. Johnstone, golang-dev
File a bug so we don't forget?

Nigel Tao

unread,
Dec 26, 2015, 7:29:33 PM12/26/15
to Brad Fitzpatrick, Robert W. Johnstone, golang-dev
On Fri, Dec 25, 2015 at 3:03 AM, Brad Fitzpatrick <brad...@golang.org> wrote:
> File a bug so we don't forget?

I filed https://github.com/golang/go/issues/13737
Reply all
Reply to author
Forward
0 new messages