Zero allocation router, first commit

This commit is contained in:
Manu Mtz-Almeida
2015-03-31 21:39:06 +02:00
parent c0e8cedc98
commit 2915fa0ffe
8 changed files with 909 additions and 172 deletions
+1 -2
View File
@@ -13,7 +13,6 @@ import (
"github.com/gin-gonic/gin/binding"
"github.com/gin-gonic/gin/render"
"github.com/julienschmidt/httprouter"
)
const AbortIndex = math.MaxInt8 / 2
@@ -26,7 +25,7 @@ type Context struct {
Request *http.Request
Writer ResponseWriter
Params httprouter.Params
Params Params
Input inputHolder
handlers []HandlerFunc
index int8