github.com/whatap/golib@v0.0.22/util/list/LinkedEntity.go (about) 1 package list 2 3 import ( 4 "fmt" 5 ) 6 7 type LinkedListEntity struct { 8 prev *LinkedListEntity 9 next *LinkedListEntity 10 Value interface{} 11 } 12 13 func (e *LinkedListEntity) ToString() string { 14 if e.Value == nil { 15 return "" 16 } 17 return fmt.Sprint(e.Value) 18 }