diff options
Diffstat (limited to 'vendor/github.com/labstack/echo/util_go17.go')
-rw-r--r-- | vendor/github.com/labstack/echo/util_go17.go | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/vendor/github.com/labstack/echo/util_go17.go b/vendor/github.com/labstack/echo/util_go17.go new file mode 100644 index 00000000..eaae17e3 --- /dev/null +++ b/vendor/github.com/labstack/echo/util_go17.go @@ -0,0 +1,12 @@ +// +build go1.7, !go1.8 + +package echo + +import ( + "net/url" +) + +// PathUnescape is wraps `url.QueryUnescape` +func PathUnescape(s string) (string, error) { + return url.QueryUnescape(s) +} |