diff --git a/.gitignore b/.gitignore index c71279c..56312f2 100644 --- a/.gitignore +++ b/.gitignore @@ -5,4 +5,4 @@ !*.md !*.mod !*.sum -!*.txt \ No newline at end of file +!*.txt diff --git a/Parameter.go b/Parameter.go index b528a04..de4f0a5 100644 --- a/Parameter.go +++ b/Parameter.go @@ -4,4 +4,4 @@ package router type Parameter struct { Key string Value string -} \ No newline at end of file +} diff --git a/readme.md b/README.md similarity index 98% rename from readme.md rename to README.md index 2338519..2532d80 100644 --- a/readme.md +++ b/README.md @@ -73,4 +73,4 @@ Please see the [license documentation](https://urbach.dev/license). ## Copyright -© 2023 Eduard Urbach \ No newline at end of file +© 2023 Eduard Urbach diff --git a/Router.go b/Router.go index 051fe14..3db0647 100644 --- a/Router.go +++ b/Router.go @@ -81,4 +81,4 @@ func (router *Router[T]) selectTree(method string) *Tree[T] { default: return nil } -} \ No newline at end of file +} diff --git a/Router_test.go b/Router_test.go index b843604..94ce016 100644 --- a/Router_test.go +++ b/Router_test.go @@ -305,4 +305,4 @@ func TestMemoryUsage(t *testing.T) { }) t.Logf("%d bytes", result.MemBytes) -} \ No newline at end of file +} diff --git a/Tree.go b/Tree.go index c5c7f90..5a72491 100644 --- a/Tree.go +++ b/Tree.go @@ -201,4 +201,4 @@ func (tree *Tree[T]) Map(transform func(T) T) { tree.root.each(func(node *treeNode[T]) { node.data = transform(node.data) }) -} \ No newline at end of file +} diff --git a/bench_test.go b/benchmarks_test.go similarity index 97% rename from bench_test.go rename to benchmarks_test.go index dd47e69..41f3571 100644 --- a/bench_test.go +++ b/benchmarks_test.go @@ -56,4 +56,4 @@ func BenchmarkGitHub(b *testing.B) { } // noop serves as an empty addParameter function. -func noop(string, string) {} \ No newline at end of file +func noop(string, string) {} diff --git a/flow.go b/flow.go index 0cc6f3e..d84bcaa 100644 --- a/flow.go +++ b/flow.go @@ -8,4 +8,4 @@ const ( flowStop flow = iota flowBegin flowNext -) \ No newline at end of file +) diff --git a/go.mod b/go.mod index 370b4bd..b147fdd 100644 --- a/go.mod +++ b/go.mod @@ -2,4 +2,4 @@ module git.urbach.dev/go/router go 1.24 -require git.urbach.dev/go/assert v0.0.0-20250225153414-7a6ed8be9b6e \ No newline at end of file +require git.urbach.dev/go/assert v0.0.0-20250225153414-7a6ed8be9b6e diff --git a/go.sum b/go.sum index e290984..049b850 100644 --- a/go.sum +++ b/go.sum @@ -1,2 +1,2 @@ git.urbach.dev/go/assert v0.0.0-20250225153414-7a6ed8be9b6e h1:lDTetvmGktDiMem+iBU3e5cGv52qUIbsqW8sV9u3gAQ= -git.urbach.dev/go/assert v0.0.0-20250225153414-7a6ed8be9b6e/go.mod h1:y9jGII9JFiF1HNIju0u87OyPCt82xKCtqnAFyEreCDo= \ No newline at end of file +git.urbach.dev/go/assert v0.0.0-20250225153414-7a6ed8be9b6e/go.mod h1:y9jGII9JFiF1HNIju0u87OyPCt82xKCtqnAFyEreCDo= diff --git a/testdata/Route.go b/testdata/Route.go index 4f2b780..2a2231f 100644 --- a/testdata/Route.go +++ b/testdata/Route.go @@ -49,4 +49,4 @@ func Lines(fileName string) <-chan string { }() return lines -} \ No newline at end of file +} diff --git a/testdata/blog.txt b/testdata/blog.txt index 755965f..432f70c 100644 --- a/testdata/blog.txt +++ b/testdata/blog.txt @@ -1,4 +1,4 @@ GET / GET /:slug GET /tags -GET /tag/:tag \ No newline at end of file +GET /tag/:tag diff --git a/treeNode.go b/treeNode.go index bb591fb..c500939 100644 --- a/treeNode.go +++ b/treeNode.go @@ -281,4 +281,4 @@ func (node *treeNode[T]) each(callback func(*treeNode[T])) { if node.wildcard != nil { node.wildcard.each(callback) } -} \ No newline at end of file +}