From fd0aebc74e908868b09ac140fb5a53cb363884c1 Mon Sep 17 00:00:00 2001 From: JoChaput Date: Sun, 11 Sep 2016 14:35:09 -0400 Subject: [PATCH] Fixed build error with < 1.7 --- bone_bench_test.go | 1 - example/004/example.go | 2 ++ helper.go | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/bone_bench_test.go b/bone_bench_test.go index fbf48e6..24dfac5 100644 --- a/bone_bench_test.go +++ b/bone_bench_test.go @@ -129,7 +129,6 @@ func Bench(rw http.ResponseWriter, req *http.Request) { rw.Write([]byte("b")) } */ - /* ### Result ### diff --git a/example/004/example.go b/example/004/example.go index 8ac216a..c229f9b 100644 --- a/example/004/example.go +++ b/example/004/example.go @@ -1,3 +1,5 @@ +// +build go1.7 + package main import ( diff --git a/helper.go b/helper.go index 3ec1496..c428004 100644 --- a/helper.go +++ b/helper.go @@ -91,7 +91,7 @@ func GetValue(req *http.Request, key string) string { return GetAllValues(req)[key] } -// This function returns the route of given Request +// GetRequestRoute returns the route of given Request func (m *Mux) GetRequestRoute(req *http.Request) string { cleanURL(&req.URL.Path) for _, r := range m.Routes[req.Method] {