Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadCategory ¶
func LoadCategory(list []model.ArticleModel)
Types ¶
type CategoryAble ¶
type CategoryAble interface {
GetCategoryId() uint
SetCategory(category model.CategoryModel)
}
type RenderData ¶
type RenderData struct {
Category model.CategoryModel
Children []model.ArticleModel
}
type RenderDataList ¶
type RenderDataList []RenderData
func (RenderDataList) Less ¶
func (s RenderDataList) Less(i, j int) bool
实现sort.Interface的Less方法,根据年龄排序
Click to show internal directories.
Click to hide internal directories.