From c70c58d7e014a2a737352599dad6e2711df899f6 Mon Sep 17 00:00:00 2001 From: bibenga <{ID}+{username}@users.noreply.github.com> Date: Sat, 23 Aug 2025 16:24:18 +0000 Subject: [PATCH] fix module name --- .gitignore | 5 +++-- go.mod | 2 +- internal/hash/hash.go | 2 +- internal/utils/utils.go | 3 ++- intlinkedhashmap/intlinkedhashmap.go | 7 ++++--- linkedhashmap/linkedhashmap.go | 7 ++++--- linkedmap/linkedmap.go | 5 +++-- tests/benchmark1_test.go | 11 ++++++----- tests/benchmark2_test.go | 11 ++++++----- tests/general_test.go | 11 ++++++----- 10 files changed, 36 insertions(+), 28 deletions(-) diff --git a/.gitignore b/.gitignore index 8df2785..b392229 100644 --- a/.gitignore +++ b/.gitignore @@ -31,5 +31,6 @@ go.work.sum # .idea/ # .vscode/ -.devcontainer -.DS_Store \ No newline at end of file +.devcontainer/ +.DS_Store +*.txt diff --git a/go.mod b/go.mod index 6a3f771..4510252 100644 --- a/go.mod +++ b/go.mod @@ -1,3 +1,3 @@ -module orderedmap +module github.com/bibenga/orderedmap go 1.24 diff --git a/internal/hash/hash.go b/internal/hash/hash.go index a07c086..610520a 100644 --- a/internal/hash/hash.go +++ b/internal/hash/hash.go @@ -16,7 +16,7 @@ // limitations under the License. package hash -import "orderedmap" +import "github.com/bibenga/orderedmap" func MapHash32(h uint32) uint32 { h += ^(h << 9) diff --git a/internal/utils/utils.go b/internal/utils/utils.go index 63a4628..73fdcc3 100644 --- a/internal/utils/utils.go +++ b/internal/utils/utils.go @@ -3,7 +3,8 @@ package utils import ( "fmt" - "orderedmap" + + "github.com/bibenga/orderedmap" ) func MapToString[K, V any](name string, m orderedmap.Map[K, V]) string { diff --git a/intlinkedhashmap/intlinkedhashmap.go b/intlinkedhashmap/intlinkedhashmap.go index 62f670a..6fe5d5b 100644 --- a/intlinkedhashmap/intlinkedhashmap.go +++ b/intlinkedhashmap/intlinkedhashmap.go @@ -5,9 +5,10 @@ package intlinkedhashmap import ( "iter" "math" - "orderedmap" - "orderedmap/internal/hash" - "orderedmap/internal/utils" + + "github.com/bibenga/orderedmap" + "github.com/bibenga/orderedmap/internal/hash" + "github.com/bibenga/orderedmap/internal/utils" ) type intLinkedHashMapEntry[K orderedmap.Integer, V any] struct { diff --git a/linkedhashmap/linkedhashmap.go b/linkedhashmap/linkedhashmap.go index 507a946..419bbb6 100644 --- a/linkedhashmap/linkedhashmap.go +++ b/linkedhashmap/linkedhashmap.go @@ -19,9 +19,10 @@ package linkedhashmap import ( "iter" "math" - "orderedmap" - "orderedmap/internal/hash" - "orderedmap/internal/utils" + + "github.com/bibenga/orderedmap" + "github.com/bibenga/orderedmap/internal/hash" + "github.com/bibenga/orderedmap/internal/utils" ) type linkedHashMapEntry[K comparable, V any] struct { diff --git a/linkedmap/linkedmap.go b/linkedmap/linkedmap.go index 0d06fec..bf349f6 100644 --- a/linkedmap/linkedmap.go +++ b/linkedmap/linkedmap.go @@ -5,8 +5,9 @@ package linkedmap import ( "container/list" "iter" - "orderedmap" - "orderedmap/internal/utils" + + "github.com/bibenga/orderedmap" + "github.com/bibenga/orderedmap/internal/utils" ) type linkedMapEntry[K comparable, V any] struct { diff --git a/tests/benchmark1_test.go b/tests/benchmark1_test.go index f07f48a..2d3c402 100644 --- a/tests/benchmark1_test.go +++ b/tests/benchmark1_test.go @@ -3,12 +3,13 @@ package tests import ( - "orderedmap" - "orderedmap/internal/hash" - "orderedmap/intlinkedhashmap" - "orderedmap/linkedhashmap" - "orderedmap/linkedmap" "testing" + + "github.com/bibenga/orderedmap" + "github.com/bibenga/orderedmap/internal/hash" + "github.com/bibenga/orderedmap/intlinkedhashmap" + "github.com/bibenga/orderedmap/linkedhashmap" + "github.com/bibenga/orderedmap/linkedmap" ) // go test -benchmem ./tests/ -bench=Benchmark1 diff --git a/tests/benchmark2_test.go b/tests/benchmark2_test.go index 2daef0e..c5cad19 100644 --- a/tests/benchmark2_test.go +++ b/tests/benchmark2_test.go @@ -4,12 +4,13 @@ package tests import ( "math/rand/v2" - "orderedmap" - "orderedmap/internal/hash" - "orderedmap/intlinkedhashmap" - "orderedmap/linkedhashmap" - "orderedmap/linkedmap" "testing" + + "github.com/bibenga/orderedmap" + "github.com/bibenga/orderedmap/internal/hash" + "github.com/bibenga/orderedmap/intlinkedhashmap" + "github.com/bibenga/orderedmap/linkedhashmap" + "github.com/bibenga/orderedmap/linkedmap" ) // go test -benchmem ./tests/ -bench=Benchmark2 diff --git a/tests/general_test.go b/tests/general_test.go index 7071c1d..02b813e 100644 --- a/tests/general_test.go +++ b/tests/general_test.go @@ -3,12 +3,13 @@ package tests import ( - "orderedmap" - "orderedmap/internal/hash" - "orderedmap/intlinkedhashmap" - "orderedmap/linkedhashmap" - "orderedmap/linkedmap" "testing" + + "github.com/bibenga/orderedmap" + "github.com/bibenga/orderedmap/internal/hash" + "github.com/bibenga/orderedmap/intlinkedhashmap" + "github.com/bibenga/orderedmap/linkedhashmap" + "github.com/bibenga/orderedmap/linkedmap" ) type Factory func() orderedmap.Map[int, int]