diff --git a/.gitignore b/.gitignore index 56312f2..c71279c 100644 --- a/.gitignore +++ b/.gitignore @@ -5,4 +5,4 @@ !*.md !*.mod !*.sum -!*.txt +!*.txt \ No newline at end of file diff --git a/Parameter.go b/Parameter.go index de4f0a5..b528a04 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 index 2532d80..2338519 100644 --- a/README.md +++ b/README.md @@ -73,4 +73,4 @@ Please see the [license documentation](https://urbach.dev/license). ## Copyright -© 2023 Eduard Urbach +© 2023 Eduard Urbach \ No newline at end of file diff --git a/Router.go b/Router.go index 3db0647..051fe14 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 94ce016..b843604 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 5a72491..c5c7f90 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/benchmarks_test.go b/benchmarks_test.go index 41f3571..dd47e69 100644 --- a/benchmarks_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) {} +func noop(string, string) {} \ No newline at end of file diff --git a/flow.go b/flow.go index d84bcaa..0cc6f3e 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 b147fdd..370b4bd 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 +require git.urbach.dev/go/assert v0.0.0-20250225153414-7a6ed8be9b6e \ No newline at end of file diff --git a/go.sum b/go.sum index 049b850..e290984 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= +git.urbach.dev/go/assert v0.0.0-20250225153414-7a6ed8be9b6e/go.mod h1:y9jGII9JFiF1HNIju0u87OyPCt82xKCtqnAFyEreCDo= \ No newline at end of file diff --git a/testdata/Route.go b/testdata/Route.go index 2a2231f..4f2b780 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 432f70c..755965f 100644 --- a/testdata/blog.txt +++ b/testdata/blog.txt @@ -1,4 +1,4 @@ GET / GET /:slug GET /tags -GET /tag/:tag +GET /tag/:tag \ No newline at end of file diff --git a/treeNode.go b/treeNode.go index c500939..bb591fb 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