github.com/joey-fossa/fossa-cli@v0.7.34-0.20190708193710-569f1e8679f0/graph/flatten.go (about) 1 package graph 2 3 import "github.com/cheekybits/genny/generic" 4 5 type Node generic.Type 6 7 type Tree interface { 8 Children() []Tree 9 } 10 11 type FlattenFunc func(node Node) (key Node, value Node) 12 13 func Flatten(pkgMap Node, root Tree, flatten FlattenFunc) {}