Documentation
¶
Overview ¶
Package list provides implementation to get and print formatted linked list.
Example:
import "github.com/shivamMg/ppds/list"
// a linked list node. implements list.Node.
type Node struct {
data int
next *Node
}
func (n *Node) Data() interface{} {
return strconv.Itoa(n.data)
}
func (n *Node) Next() list.Node {
return n.next
}
// n1 := Node{data: 11}
// n2 := Node{12, &n1}
// n3 := Node{13, &n2}
// list.Print(&n3)
Index ¶
Constants ¶
View Source
const ( BoxVer = "│" BoxHor = "─" BoxDownLeft = "┐" BoxDownRight = "┌" BoxUpLeft = "┘" BoxUpRight = "└" BoxVerLeft = "┤" BoxVerRight = "├" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.