Skip to content

将树形结构以一种便于阅读的形式呈现

License

Notifications You must be signed in to change notification settings

gogokit/treeprint

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

treeprint

将树形结构以一种便于阅读的形式呈现, 需要树中结点实现Node接口, Node接口定义如下:
type Node interface {
 Id() string // 返回结点Id,要求每个结点唯一
 Children() []Node
 String() string // 返回结点的字符串表示,要求不存在换行符
}

About

将树形结构以一种便于阅读的形式呈现

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages