mirror of
https://github.com/labstack/echo.git
synced 2025-06-25 00:47:01 +02:00
Added response already committed logic
Signed-off-by: Vishal Rana <vr@labstack.com>
This commit is contained in:
17
router.go
17
router.go
@ -3,7 +3,6 @@ package bolt
|
||||
import (
|
||||
"fmt"
|
||||
"net/http"
|
||||
"sort"
|
||||
"sync"
|
||||
)
|
||||
|
||||
@ -66,22 +65,6 @@ func (n *node) findEdge(l byte) *node {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (e edges) Len() int {
|
||||
return len(e)
|
||||
}
|
||||
|
||||
func (e edges) Swap(i, j int) {
|
||||
e[i], e[j] = e[j], e[i]
|
||||
}
|
||||
|
||||
func (e edges) Less(i, j int) bool {
|
||||
return e[i].label < e[j].label
|
||||
}
|
||||
|
||||
func (e edges) Sort() {
|
||||
sort.Sort(e)
|
||||
}
|
||||
|
||||
func (r *router) Add(method, path string, h HandlerFunc) {
|
||||
i := 0
|
||||
l := len(path)
|
||||
|
Reference in New Issue
Block a user