about summary refs log tree commit diff
diff options
context:
space:
mode:
authorFranck Cuny <franck@lumberjaph.net>2013-05-08 20:22:43 -0700
committerFranck Cuny <franck@lumberjaph.net>2013-05-08 20:22:43 -0700
commit420d0d66be1333ce7d5e7a862b33081751054ed2 (patch)
treed733d2dea62c8f164bbcfa5868411b4ab3c3b6a5
parentadd build status to readme (diff)
downloadpath-router-420d0d66be1333ce7d5e7a862b33081751054ed2.tar.gz
Rename the package from mooh to router
-rw-r--r--route.go2
-rw-r--r--route_test.go7
-rw-r--r--router.go4
-rw-r--r--router_benchmark_test.go15
-rw-r--r--router_test.go7
5 files changed, 19 insertions, 16 deletions
diff --git a/route.go b/route.go
index 98e61a6..2fed631 100644
--- a/route.go
+++ b/route.go
@@ -1,4 +1,4 @@
-package mooh
+package router
 
 import (
 	"regexp"
diff --git a/route_test.go b/route_test.go
index e4b33c0..8159073 100644
--- a/route_test.go
+++ b/route_test.go
@@ -1,15 +1,16 @@
-package mooh
+package router
 
 import (
 	"fmt"
+	"github.com/franckcuny/web-request"
 	"net/http"
 	"net/url"
 	"regexp"
 	"testing"
 )
 
-func testRoute(req *Request) (Response, error) {
-	resp := Response{}
+func testRoute(req *request.Request) (request.Response, error) {
+	resp := request.Response{}
 	return resp, nil
 }
 
diff --git a/router.go b/router.go
index 8f2ef9e..9b8d453 100644
--- a/router.go
+++ b/router.go
@@ -1,11 +1,11 @@
-package mooh
+package router
 
 import (
 	"errors"
 	"fmt"
+	"github.com/franckcuny/web-request"
 	"net/http"
 	"strings"
-	"github.com/franckcuny/web-request"
 )
 
 type Router struct {
diff --git a/router_benchmark_test.go b/router_benchmark_test.go
index 205fb62..42fe579 100644
--- a/router_benchmark_test.go
+++ b/router_benchmark_test.go
@@ -1,14 +1,15 @@
-package mooh
+package router
 
 import (
-	"testing"
-	"net/url"
-	"net/http"
 	"fmt"
+	"github.com/franckcuny/web-request"
+	"net/http"
+	"net/url"
+	"testing"
 )
 
-func testSimpleRoute(req *Request) (Response, error) {
-	resp := Response{}
+func testSimpleRoute(req *request.Request) (request.Response, error) {
+	resp := request.Response{}
 	return resp, nil
 }
 
@@ -51,7 +52,7 @@ func BenchmarkSimple(b *testing.B) {
 	b.StartTimer()
 
 	for i := 0; i < b.N; i++ {
-		for _, r := range requests{
+		for _, r := range requests {
 			m, _ := router.Match(r)
 			if m == nil && r.URL.Path != "/doesnotexists" {
 				b.Fatal()
diff --git a/router_test.go b/router_test.go
index 0df229d..cb18fba 100644
--- a/router_test.go
+++ b/router_test.go
@@ -1,11 +1,12 @@
-package mooh
+package router
 
 import (
+	"github.com/franckcuny/web-request"
 	"testing"
 )
 
-func testRouter(req *Request) (Response, error) {
-	resp := Response{}
+func testRouter(req *request.Request) (request.Response, error) {
+	resp := request.Response{}
 	return resp, nil
 }