You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
243 B
Go
16 lines
243 B
Go
2 years ago
|
package main
|
||
|
|
||
|
import (
|
||
|
// "github.com/goccy/go-graphviz"
|
||
|
"github.com/goccy/go-graphviz/cgraph"
|
||
|
)
|
||
|
|
||
|
func walk(r Room, parent *cgraph.Node, g *cgraph.Graph) error {
|
||
|
_, err := g.CreateNode(r.Uid)
|
||
|
if err != nil {
|
||
|
return err
|
||
|
}
|
||
|
|
||
|
return nil
|
||
|
}
|