Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Excerpt
- // List holds the internal structure of a doubly-linked list
- type List struct {
- head *node
- tail *node
- }
- // Internal struct as a node
- type node struct {
- data interface{}
- next *node
- prev *node
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement