Generics migration (#237)

* Generics migration

This attempts to migrate this library in the least invasive way by preserving as
much of the original API as possible. It does not change the tests in a
meaningful way nor does it attempt to upgrade any logic that can be simplified
or improved with generics. This is purely an API migration, and still requires a
lot of additional work to be fully ready.

* Fix a few broken tests around serialization

* Add v2 suffix

* Temporarily change mod name for testing

* Rename module to /v2
This commit is contained in:
Paul Chesnais
2024-01-06 19:06:17 -05:00
committed by GitHub
parent 10d6c5b4f2
commit 14f714261f
135 changed files with 3254 additions and 4083 deletions
+2 -2
View File
@@ -4,11 +4,11 @@
package main
import aq "github.com/emirpasic/gods/queues/arrayqueue"
import aq "github.com/emirpasic/gods/v2/queues/arrayqueue"
// ArrayQueueExample to demonstrate basic usage of ArrayQueue
func main() {
queue := aq.New() // empty
queue := aq.New[int]() // empty
queue.Enqueue(1) // 1
queue.Enqueue(2) // 1, 2
_ = queue.Values() // 1, 2 (FIFO order)