type top struct { node *tree hd int } func (t *bt) topview() { if t.root == nil { return } qu := list.New() qu.PushBack(top{t.root, 0}