A series of functions to map a binary tree to a list. A port of flat-tree to go.
go get github.com/bcomnes/flattree
You can represent a binary tree in a simple flat list using the following structure
3 1 5 0 2 4 6 ...
See Godoc example on godoc.
See API example on godoc.