Documentation ¶
Index ¶
- type SyncList
- func (sl *SyncList) Back() *list.Element
- func (sl *SyncList) Front() *list.Element
- func (sl *SyncList) Len() int
- func (sl *SyncList) Lock()
- func (sl *SyncList) PushBack(v interface{}) *list.Element
- func (sl *SyncList) Remove(element *list.Element) interface{}
- func (sl *SyncList) SearchAndRemove(v interface{})
- func (sl *SyncList) Unlock()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SyncList ¶
type SyncList struct {
// contains filtered or unexported fields
}
only be used in normal type or pointer[do not use SearchAndRemove in complex struct]
func (*SyncList) SearchAndRemove ¶
func (sl *SyncList) SearchAndRemove(v interface{})
CAN NOT BE USE IN List<contain> or List<map> or List<func> or List<Slice> search all the interface equal to v and delete them
Click to show internal directories.
Click to hide internal directories.