dbl is a Doubly Linked List implementation in Go
package main
import "github.com/gompact/dbl"
func main() {
// create empty list
l := dbl.NewList()
// append values to the list
l.Append("first node")
l.Append("second node")
// remove first index
ok := l.Remove(0)
// Pop last element
l.Append("third node")
thirdNode := l.Pop()
// Add element to the beginning of the list
l.Prepend("zero node")
// remove all elements in the list
l.RemoveAll()
// get length of the list
length := l.Length()
}