将树形结构以一种便于阅读的形式呈现, 需要树中结点实现Node接口, Node接口定义如下:
type Node interface {
Id() string // 返回结点Id,要求每个结点唯一
Children() []Node
String() string // 返回结点的字符串表示,要求不存在换行符
}
-
Notifications
You must be signed in to change notification settings - Fork 0
将树形结构以一种便于阅读的形式呈现
License
gogokit/treeprint
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
将树形结构以一种便于阅读的形式呈现
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published