Skip to content

Commit

Permalink
Fixed build error with < 1.7
Browse files Browse the repository at this point in the history
  • Loading branch information
JoChaput committed Sep 11, 2016
1 parent adb6778 commit fd0aebc
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 0 additions & 1 deletion bone_bench_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,6 @@ func Bench(rw http.ResponseWriter, req *http.Request) {
rw.Write([]byte("b"))
}
*/

/*
### Result ###
Expand Down
2 changes: 2 additions & 0 deletions example/004/example.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build go1.7

package main

import (
Expand Down
2 changes: 1 addition & 1 deletion helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -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] {
Expand Down

0 comments on commit fd0aebc

Please sign in to comment.