Skip to content
This repository was archived by the owner on Nov 22, 2025. It is now read-only.

Commit 23967d5

Browse files
authored
Merge pull request #2 from bibenga/feature/fix-module-name
fix module name
2 parents b83a81e + c70c58d commit 23967d5

10 files changed

Lines changed: 36 additions & 28 deletions

File tree

.gitignore

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,6 @@ go.work.sum
3131
# .idea/
3232
# .vscode/
3333

34-
.devcontainer
35-
.DS_Store
34+
.devcontainer/
35+
.DS_Store
36+
*.txt

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
module orderedmap
1+
module github.com/bibenga/orderedmap
22

33
go 1.24

internal/hash/hash.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
// limitations under the License.
1717
package hash
1818

19-
import "orderedmap"
19+
import "github.com/bibenga/orderedmap"
2020

2121
func MapHash32(h uint32) uint32 {
2222
h += ^(h << 9)

internal/utils/utils.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ package utils
33

44
import (
55
"fmt"
6-
"orderedmap"
6+
7+
"github.com/bibenga/orderedmap"
78
)
89

910
func MapToString[K, V any](name string, m orderedmap.Map[K, V]) string {

intlinkedhashmap/intlinkedhashmap.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,10 @@ package intlinkedhashmap
55
import (
66
"iter"
77
"math"
8-
"orderedmap"
9-
"orderedmap/internal/hash"
10-
"orderedmap/internal/utils"
8+
9+
"github.com/bibenga/orderedmap"
10+
"github.com/bibenga/orderedmap/internal/hash"
11+
"github.com/bibenga/orderedmap/internal/utils"
1112
)
1213

1314
type intLinkedHashMapEntry[K orderedmap.Integer, V any] struct {

linkedhashmap/linkedhashmap.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,10 @@ package linkedhashmap
1919
import (
2020
"iter"
2121
"math"
22-
"orderedmap"
23-
"orderedmap/internal/hash"
24-
"orderedmap/internal/utils"
22+
23+
"github.com/bibenga/orderedmap"
24+
"github.com/bibenga/orderedmap/internal/hash"
25+
"github.com/bibenga/orderedmap/internal/utils"
2526
)
2627

2728
type linkedHashMapEntry[K comparable, V any] struct {

linkedmap/linkedmap.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@ package linkedmap
55
import (
66
"container/list"
77
"iter"
8-
"orderedmap"
9-
"orderedmap/internal/utils"
8+
9+
"github.com/bibenga/orderedmap"
10+
"github.com/bibenga/orderedmap/internal/utils"
1011
)
1112

1213
type linkedMapEntry[K comparable, V any] struct {

tests/benchmark1_test.go

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,13 @@
33
package tests
44

55
import (
6-
"orderedmap"
7-
"orderedmap/internal/hash"
8-
"orderedmap/intlinkedhashmap"
9-
"orderedmap/linkedhashmap"
10-
"orderedmap/linkedmap"
116
"testing"
7+
8+
"github.com/bibenga/orderedmap"
9+
"github.com/bibenga/orderedmap/internal/hash"
10+
"github.com/bibenga/orderedmap/intlinkedhashmap"
11+
"github.com/bibenga/orderedmap/linkedhashmap"
12+
"github.com/bibenga/orderedmap/linkedmap"
1213
)
1314

1415
// go test -benchmem ./tests/ -bench=Benchmark1

tests/benchmark2_test.go

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,13 @@ package tests
44

55
import (
66
"math/rand/v2"
7-
"orderedmap"
8-
"orderedmap/internal/hash"
9-
"orderedmap/intlinkedhashmap"
10-
"orderedmap/linkedhashmap"
11-
"orderedmap/linkedmap"
127
"testing"
8+
9+
"github.com/bibenga/orderedmap"
10+
"github.com/bibenga/orderedmap/internal/hash"
11+
"github.com/bibenga/orderedmap/intlinkedhashmap"
12+
"github.com/bibenga/orderedmap/linkedhashmap"
13+
"github.com/bibenga/orderedmap/linkedmap"
1314
)
1415

1516
// go test -benchmem ./tests/ -bench=Benchmark2

tests/general_test.go

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,13 @@
33
package tests
44

55
import (
6-
"orderedmap"
7-
"orderedmap/internal/hash"
8-
"orderedmap/intlinkedhashmap"
9-
"orderedmap/linkedhashmap"
10-
"orderedmap/linkedmap"
116
"testing"
7+
8+
"github.com/bibenga/orderedmap"
9+
"github.com/bibenga/orderedmap/internal/hash"
10+
"github.com/bibenga/orderedmap/intlinkedhashmap"
11+
"github.com/bibenga/orderedmap/linkedhashmap"
12+
"github.com/bibenga/orderedmap/linkedmap"
1213
)
1314

1415
type Factory func() orderedmap.Map[int, int]

0 commit comments

Comments
 (0)