Documentation ¶ Index ¶ type Ring func InitRing() *Ring func (r *Ring) InsertByHead(data ...interface{}) func (r *Ring) InsertByTail(data ...interface{}) func (r *Ring) Link(s *Ring) *Ring func (r *Ring) Move(n int) *Ring func (r *Ring) NextNode() *Ring func (r *Ring) NodeData() interface{} func (r *Ring) PrevNode() *Ring func (r *Ring) Print() Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Ring ¶ type Ring struct { // contains filtered or unexported fields } func InitRing ¶ func InitRing() *Ring func (*Ring) InsertByHead ¶ func (r *Ring) InsertByHead(data ...interface{}) InsertByHead 头插法 func (*Ring) InsertByTail ¶ func (r *Ring) InsertByTail(data ...interface{}) InsertByTail 尾插法 func (*Ring) Link ¶ func (r *Ring) Link(s *Ring) *Ring Link 往节点A,链接一个节点,并且返回之前节点A的后驱节点 func (*Ring) Move ¶ func (r *Ring) Move(n int) *Ring func (*Ring) NextNode ¶ func (r *Ring) NextNode() *Ring func (*Ring) NodeData ¶ func (r *Ring) NodeData() interface{} func (*Ring) PrevNode ¶ func (r *Ring) PrevNode() *Ring func (*Ring) Print ¶ func (r *Ring) Print() Source Files ¶ View all Source files ring_list.go Click to show internal directories. Click to hide internal directories.