Versions in this module Expand all Collapse all v0 v0.0.1 Dec 2, 2020 Changes in this version + type Category struct + IDField string + PidField string + func New(options ...Option) *Category + func (category *Category) Table(table database.Table) *Table + type Node struct + Alias string + Badge string + Description string + Name string + Next Nodes + Pic string + type Nodes []*Node + type Option func(category *Category) + 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 struct + func (table *Table) WithDB(db *gorm.DB) *Tree + type Tree struct + func (tree *Tree) Categories() Nodes