Documentation ¶ Index ¶ type Iter type List func NewTree() List Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Iter ¶ type Iter interface { Next() bool Value() interface{} } Iter 迭代器对象 type List ¶ type List interface { // Remove 移除节点 Remove(key int64) bool // Add 新增节点 Add(key int64, data interface{}) // Range 过滤范围内的 key 并返回 Iter 对象 Range(lower, upper int64) Iter // All 迭代所有对象 All() Iter } List 实现了排序链表的数据结构 func NewTree ¶ func NewTree() List NewTree 生成 AVL 树 Source Files ¶ View all Source files list.go Click to show internal directories. Click to hide internal directories.