summaryrefslogtreecommitdiffstats
path: root/vendor/github.com/labstack/echo/util_go18.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/labstack/echo/util_go18.go')
-rw-r--r--vendor/github.com/labstack/echo/util_go18.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/vendor/github.com/labstack/echo/util_go18.go b/vendor/github.com/labstack/echo/util_go18.go
new file mode 100644
index 00000000..8a37785b
--- /dev/null
+++ b/vendor/github.com/labstack/echo/util_go18.go
@@ -0,0 +1,10 @@
+// +build go1.8
+
+package echo
+
+import "net/url"
+
+// PathUnescape is wraps `url.PathUnescape`
+func PathUnescape(s string) (string, error) {
+ return url.PathUnescape(s)
+}