Library of generic singly, doubly, and circularly linked-list data structures for Go.
$ go get github.com/golang-ds/linkedlist
import "github.com/golang-ds/linkedlist/singly"
list := singly.New[int]()
list.AddFirst(1)
import "github.com/golang-ds/linkedlist/doubly"
list := doubly.New[int]()
list.AddFirst(1)
import "github.com/golang-ds/linkedlist/circularly"
list := circularly.New[int]()
list.AddFirst(1)
- OfRange factory function
- OfSlice factory function
- Init(range, func) factory function