Skip to content
Open
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
3 changes: 2 additions & 1 deletion containers/containers_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,10 @@ package containers

import (
"fmt"
"github.com/emirpasic/gods/utils"
"strings"
"testing"

"github.com/emirpasic/gods/utils"
)

// For testing purposes
Expand Down
1 change: 1 addition & 0 deletions examples/avltree/avltree.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ package main

import (
"fmt"

avl "github.com/emirpasic/gods/trees/avltree"
)

Expand Down
1 change: 1 addition & 0 deletions examples/btree/btree.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ package main

import (
"fmt"

"github.com/emirpasic/gods/trees/btree"
)

Expand Down
1 change: 1 addition & 0 deletions examples/customcomparator/customcomparator.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ package main

import (
"fmt"

"github.com/emirpasic/gods/sets/treeset"
)

Expand Down
1 change: 1 addition & 0 deletions examples/enumerablewithindex/enumerablewithindex.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ package main

import (
"fmt"

"github.com/emirpasic/gods/sets/treeset"
)

Expand Down
1 change: 1 addition & 0 deletions examples/enumerablewithkey/enumerablewithkey.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ package main

import (
"fmt"

"github.com/emirpasic/gods/maps/treemap"
)

Expand Down
3 changes: 2 additions & 1 deletion examples/iteratorwithindex/iteratorwithindex.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@ package main

import (
"fmt"
"github.com/emirpasic/gods/sets/treeset"
"strings"

"github.com/emirpasic/gods/sets/treeset"
)

// IteratorWithIndexExample to demonstrate basic usage of IteratorWithIndex
Expand Down
3 changes: 2 additions & 1 deletion examples/iteratorwithkey/iteratorwithkey.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@ package main

import (
"fmt"
"github.com/emirpasic/gods/maps/treemap"
"strings"

"github.com/emirpasic/gods/maps/treemap"
)

// IteratorWithKeyExample to demonstrate basic usage of IteratorWithKey
Expand Down
1 change: 1 addition & 0 deletions examples/redblacktree/redblacktree.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ package main

import (
"fmt"

rbt "github.com/emirpasic/gods/trees/redblacktree"
)

Expand Down
1 change: 1 addition & 0 deletions examples/redblacktreeextended/redblacktreeextended.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ package redblacktreeextended

import (
"fmt"

rbt "github.com/emirpasic/gods/trees/redblacktree"
)

Expand Down
1 change: 1 addition & 0 deletions examples/serialization/serialization.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package serialization

import (
"fmt"

"github.com/emirpasic/gods/lists/arraylist"
"github.com/emirpasic/gods/maps/hashmap"
)
Expand Down
3 changes: 2 additions & 1 deletion lists/arraylist/arraylist_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@ package arraylist
import (
"encoding/json"
"fmt"
"github.com/emirpasic/gods/utils"
"strings"
"testing"

"github.com/emirpasic/gods/utils"
)

func TestListNew(t *testing.T) {
Expand Down
1 change: 1 addition & 0 deletions lists/arraylist/serialization.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ package arraylist

import (
"encoding/json"

"github.com/emirpasic/gods/containers"
)

Expand Down
1 change: 1 addition & 0 deletions lists/doublylinkedlist/serialization.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ package doublylinkedlist

import (
"encoding/json"

"github.com/emirpasic/gods/containers"
)

Expand Down
1 change: 1 addition & 0 deletions lists/singlylinkedlist/serialization.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ package singlylinkedlist

import (
"encoding/json"

"github.com/emirpasic/gods/containers"
)

Expand Down
1 change: 1 addition & 0 deletions maps/hashbidimap/hashbidimap.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ package hashbidimap

import (
"fmt"

"github.com/emirpasic/gods/maps"
"github.com/emirpasic/gods/maps/hashmap"
)
Expand Down
1 change: 1 addition & 0 deletions maps/hashbidimap/serialization.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ package hashbidimap

import (
"encoding/json"

"github.com/emirpasic/gods/containers"
)

Expand Down
1 change: 1 addition & 0 deletions maps/hashmap/hashmap.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ package hashmap

import (
"fmt"

"github.com/emirpasic/gods/maps"
)

Expand Down
1 change: 1 addition & 0 deletions maps/hashmap/serialization.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ package hashmap

import (
"encoding/json"

"github.com/emirpasic/gods/containers"
"github.com/emirpasic/gods/utils"
)
Expand Down
3 changes: 2 additions & 1 deletion maps/linkedhashmap/linkedhashmap.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,10 @@ package linkedhashmap

import (
"fmt"
"strings"

"github.com/emirpasic/gods/lists/doublylinkedlist"
"github.com/emirpasic/gods/maps"
"strings"
)

// Assert Map implementation
Expand Down
1 change: 1 addition & 0 deletions maps/linkedhashmap/serialization.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ package linkedhashmap
import (
"bytes"
"encoding/json"

"github.com/emirpasic/gods/containers"
"github.com/emirpasic/gods/utils"
)
Expand Down
1 change: 1 addition & 0 deletions maps/treebidimap/serialization.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ package treebidimap

import (
"encoding/json"

"github.com/emirpasic/gods/containers"
"github.com/emirpasic/gods/utils"
)
Expand Down
3 changes: 2 additions & 1 deletion maps/treebidimap/treebidimap.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,11 @@ package treebidimap

import (
"fmt"
"strings"

"github.com/emirpasic/gods/maps"
"github.com/emirpasic/gods/trees/redblacktree"
"github.com/emirpasic/gods/utils"
"strings"
)

// Assert Map implementation
Expand Down
3 changes: 2 additions & 1 deletion maps/treebidimap/treebidimap_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@ package treebidimap
import (
"encoding/json"
"fmt"
"github.com/emirpasic/gods/utils"
"strings"
"testing"

"github.com/emirpasic/gods/utils"
)

func TestMapPut(t *testing.T) {
Expand Down
3 changes: 2 additions & 1 deletion maps/treemap/treemap.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,11 @@ package treemap

import (
"fmt"
"strings"

"github.com/emirpasic/gods/maps"
rbt "github.com/emirpasic/gods/trees/redblacktree"
"github.com/emirpasic/gods/utils"
"strings"
)

// Assert Map implementation
Expand Down
3 changes: 2 additions & 1 deletion maps/treemap/treemap_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@ package treemap
import (
"encoding/json"
"fmt"
"github.com/emirpasic/gods/utils"
"strings"
"testing"

"github.com/emirpasic/gods/utils"
)

func TestMapPut(t *testing.T) {
Expand Down
1 change: 1 addition & 0 deletions queues/circularbuffer/serialization.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ package circularbuffer

import (
"encoding/json"

"github.com/emirpasic/gods/containers"
)

Expand Down
3 changes: 2 additions & 1 deletion queues/priorityqueue/priorityqueue.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,11 @@ package priorityqueue

import (
"fmt"
"strings"

"github.com/emirpasic/gods/queues"
"github.com/emirpasic/gods/trees/binaryheap"
"github.com/emirpasic/gods/utils"
"strings"
)

// Assert Queue implementation
Expand Down
3 changes: 2 additions & 1 deletion queues/priorityqueue/priorityqueue_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,11 @@ package priorityqueue
import (
"encoding/json"
"fmt"
"github.com/emirpasic/gods/utils"
"math/rand"
"strings"
"testing"

"github.com/emirpasic/gods/utils"
)

type Element struct {
Expand Down
3 changes: 2 additions & 1 deletion sets/hashset/hashset.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@ package hashset

import (
"fmt"
"github.com/emirpasic/gods/sets"
"strings"

"github.com/emirpasic/gods/sets"
)

// Assert Set implementation
Expand Down
1 change: 1 addition & 0 deletions sets/hashset/serialization.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ package hashset

import (
"encoding/json"

"github.com/emirpasic/gods/containers"
)

Expand Down
3 changes: 2 additions & 1 deletion sets/linkedhashset/linkedhashset.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,10 @@ package linkedhashset

import (
"fmt"
"strings"

"github.com/emirpasic/gods/lists/doublylinkedlist"
"github.com/emirpasic/gods/sets"
"strings"
)

// Assert Set implementation
Expand Down
1 change: 1 addition & 0 deletions sets/linkedhashset/serialization.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ package linkedhashset

import (
"encoding/json"

"github.com/emirpasic/gods/containers"
)

Expand Down
1 change: 1 addition & 0 deletions sets/treeset/serialization.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ package treeset

import (
"encoding/json"

"github.com/emirpasic/gods/containers"
)

Expand Down
5 changes: 3 additions & 2 deletions sets/treeset/treeset.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,12 @@ package treeset

import (
"fmt"
"reflect"
"strings"

"github.com/emirpasic/gods/sets"
rbt "github.com/emirpasic/gods/trees/redblacktree"
"github.com/emirpasic/gods/utils"
"reflect"
"strings"
)

// Assert Set implementation
Expand Down
3 changes: 2 additions & 1 deletion stacks/arraystack/arraystack.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,10 @@ package arraystack

import (
"fmt"
"strings"

"github.com/emirpasic/gods/lists/arraylist"
"github.com/emirpasic/gods/stacks"
"strings"
)

// Assert Stack implementation
Expand Down
3 changes: 2 additions & 1 deletion stacks/linkedliststack/linkedliststack.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,10 @@ package linkedliststack

import (
"fmt"
"strings"

"github.com/emirpasic/gods/lists/singlylinkedlist"
"github.com/emirpasic/gods/stacks"
"strings"
)

// Assert Stack implementation
Expand Down
1 change: 1 addition & 0 deletions trees/avltree/avltree.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ package avltree

import (
"fmt"

"github.com/emirpasic/gods/trees"
"github.com/emirpasic/gods/utils"
)
Expand Down
Loading