Documentation
¶
Index ¶
- type Category
- type Node
- type Nodes
- type Option
- func SetAliasField(field string) Option
- func SetBadgeField(field string) Option
- func SetDescriptionField(field string) Option
- func SetIDField(field string) Option
- func SetLevelField(field string) Option
- func SetNameField(field string) Option
- func SetPicField(field string) Option
- func SetPidField(field string) Option
- type Table
- type Tree
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Category ¶
type Category struct {
PidField, IDField string
// contains filtered or unexported fields
}
Category classification
type Node ¶
type Node struct { Alias string `json:"alias"` // It may be the data needed for page link splicing, such as items?category={alias} or items/{alias} Name string `json:"name"` // category display name Pic string `json:"pic"` // icon Badge string `json:"badge"` // badges, possible corner markers Description string `json:"description"` // possible introduction Next Nodes `json:"next"` // subcategory }
Node classification information
type Option ¶
type Option func(category *Category)
Option setup
func SetAliasField ¶
SetAliasField set alias field field name
func SetBadgeField ¶
SetBadgeField set corner badge field name
func SetDescriptionField ¶
SetDescriptionField set the field name of the detail profile
func SetLevelField ¶
SetLevelField set hierarchical field name
Click to show internal directories.
Click to hide internal directories.