Skip to content
This repository was archived by the owner on Nov 22, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,6 @@ go.work.sum
# .idea/
# .vscode/

.devcontainer
.DS_Store
.devcontainer/
.DS_Store
*.txt
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module orderedmap
module github.com/bibenga/orderedmap

go 1.24
2 changes: 1 addition & 1 deletion internal/hash/hash.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
3 changes: 2 additions & 1 deletion internal/utils/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
7 changes: 4 additions & 3 deletions intlinkedhashmap/intlinkedhashmap.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
7 changes: 4 additions & 3 deletions linkedhashmap/linkedhashmap.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
5 changes: 3 additions & 2 deletions linkedmap/linkedmap.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
11 changes: 6 additions & 5 deletions tests/benchmark1_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
11 changes: 6 additions & 5 deletions tests/benchmark2_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
11 changes: 6 additions & 5 deletions tests/general_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
Loading