代码拉取完成,页面将自动刷新
package list
// Sentinel Provides the a very basic struct that fulfills the Elementer interface. It is meant to be embedded into other
// structs that want to fulfill the interface.
type Sentinel struct {
next Elementer
list *List
}
// Returns the next Element in the list.
func (s *Sentinel) Next() Elementer {
if s == nil {
return nil
}
return s.next
}
// Sets the next element in the list.
func (s *Sentinel) SetNext(e Elementer) Elementer {
if s == nil {
return nil
}
n := s.next
s.next = e
return n
}
// Returns the list.
func (s *Sentinel) List() *List {
if s == nil {
return nil
}
return s.list
}
// Set's the list.
func (s *Sentinel) SetList(l *List) *List {
if s == nil {
return nil
}
ol := s.list
s.list = l
return ol
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。