Change module name
This commit is contained in:
3
.gitignore
vendored
3
.gitignore
vendored
@@ -1,4 +1,6 @@
|
||||
# Binaries for programs and plugins
|
||||
build/
|
||||
|
||||
*.exe
|
||||
*.exe~
|
||||
*.dll
|
||||
@@ -13,3 +15,4 @@
|
||||
|
||||
# Dependency directories (remove the comment below to include it)
|
||||
# vendor/
|
||||
.idea/
|
||||
@@ -3,4 +3,9 @@ package collection
|
||||
type Iterator[E any] interface {
|
||||
HasNext() bool
|
||||
Next() E
|
||||
NextWithIndex() (int, E)
|
||||
}
|
||||
|
||||
type Iterable[E any] interface {
|
||||
Iterator() Iterator[E]
|
||||
}
|
||||
|
||||
@@ -3,7 +3,7 @@ package collection_test
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"asd.me/pkg/collection"
|
||||
"github.com/asd/pkg/collection"
|
||||
)
|
||||
|
||||
type pair struct {
|
||||
|
||||
Reference in New Issue
Block a user