import "container/list" func main() { l := list.New() l.PushBack(10) }
import "container/list" func main() { l := list.New() l.PushFront(5) }
import "container/list" func main() { l := list.New() l.PushBack(10) e := l.Front() l.Remove(e) }In conclusion, the package library used in these examples is `container/list`, and it provides a linked list implementation in Go.