rename files

This commit is contained in:
Sky Johnson 2024-09-05 13:02:29 -05:00
parent 8d9ebd3214
commit 873f396580
5 changed files with 2 additions and 2 deletions

View File

View File

@ -12,7 +12,7 @@ type Router[T any] struct {
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] {
return &Router[T]{}
}
@ -56,7 +56,7 @@ func (router *Router[T]) Map(transform func(T) T) {
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] {
switch method {
case "GET":

View File