Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LevelTree ¶
type LevelTree[T LevelNode[E], E comparable] struct { Data T Children []*LevelTree[T, E] }
LevelTree 菜单或分类层级树
func New ¶
func New[T LevelNode[E], E comparable](data map[E][]T, pid E) []*LevelTree[T, E]
New 构建菜单或分类层级树(data=按pid归类后的数据, pid=树的起始ID)
Click to show internal directories.
Click to hide internal directories.