rename files
This commit is contained in:
parent
8d9ebd3214
commit
873f396580
|
@ -12,7 +12,7 @@ type Router[T any] struct {
|
||||||
options Tree[T]
|
options Tree[T]
|
||||||
}
|
}
|
||||||
|
|
||||||
// Creates a new router containing trees for every HTTP method.
|
// Create a new Router containing trees for every HTTP method.
|
||||||
func New[T any]() *Router[T] {
|
func New[T any]() *Router[T] {
|
||||||
return &Router[T]{}
|
return &Router[T]{}
|
||||||
}
|
}
|
||||||
|
@ -56,7 +56,7 @@ func (router *Router[T]) Map(transform func(T) T) {
|
||||||
router.options.Map(transform)
|
router.options.Map(transform)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Returns the tree by the given HTTP method.
|
// Returns the tree of the given HTTP method.
|
||||||
func (router *Router[T]) selectTree(method string) *Tree[T] {
|
func (router *Router[T]) selectTree(method string) *Tree[T] {
|
||||||
switch method {
|
switch method {
|
||||||
case "GET":
|
case "GET":
|
Loading…
Reference in New Issue
Block a user