Versions in this module Expand all Collapse all v1 v1.5.3 Jan 31, 2024 v1.5.2 Jan 31, 2024 Changes in this version + func Create(db *gorm.DB, source, parent interface{}) error + func Delete(db *gorm.DB, source interface{}) error + func MoveTo(db *gorm.DB, node, to interface{}, direction MoveDirection) error + func Rebuild(db *gorm.DB, source interface{}, doUpdate bool) (affectedCount int, err error) + type MoveDirection int + const MoveDirectionInner + const MoveDirectionLeft + const MoveDirectionRight + type Tree struct + Children []*TreeNode + type TreeNode struct + Children []*TreeNode + func (item TreeNode) IsPositionSame(original *nestedItem) bool