rytsh / casset

Endless Linked Memory

Home Page:https://pkg.go.dev/github.com/rytsh/casset

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

casset_logo

Casset is double linked endless memory library.

Always generate new space automatically.

Memory hold length, front, back and current location
Element hold value belong memory address and next, previous elements address.

Installation

go get github.com/rytsh/casset

Usage

l := casset.NewMemory("My First Element").Current
l.Next("second element").Next(3.14).Next(struct{ v string }{v: "4th element"})

for e := l.GetMemory().GetFront(); e != nil; e = e.GetNextElement() {
    fmt.Println(e.GetValue())
}

License

MIT

About

Endless Linked Memory

https://pkg.go.dev/github.com/rytsh/casset

License:MIT License


Languages

Language:Go 100.0%