diff --git a/Flow.go b/flow.go similarity index 100% rename from Flow.go rename to flow.go diff --git a/Parameter.go b/parameter.go similarity index 100% rename from Parameter.go rename to parameter.go diff --git a/Router.go b/router.go similarity index 94% rename from Router.go rename to router.go index 6e2b8c4..839fade 100644 --- a/Router.go +++ b/router.go @@ -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": diff --git a/Tree.go b/tree.go similarity index 100% rename from Tree.go rename to tree.go diff --git a/TreeNode.go b/treeNode.go similarity index 100% rename from TreeNode.go rename to treeNode.go