This is a collection of some data structures with Go. They're built with TDD.
- Init a Go Module (e.g.
go mod init example.com
) go get github.com/unpolinomio/data-structures-with-go
- Have fun!
package main
import (
"fmt"
datas "github.com/unpolinomio/data-structures-with-go"
)
func main() {
list := datas.SynglyLinkedList{}
list.PushFront(10)
list.PushFront(20)
list.PushFront(30)
fmt.Println(list.Get(1))
}
- Singly-linked list
- ...