Documentation ¶ Index ¶ type Item type List func NewList() *List func (l *List) AddOrUpdate(id int, item any) func (l *List) Delete(id int) any func (l *List) Exist(id int) bool func (l *List) Get(id int) (index int, item any) func (l *List) GetIds() (ids []int) func (l *List) Reset() Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Item ¶ type Item struct { // contains filtered or unexported fields } type List ¶ type List struct { // contains filtered or unexported fields } func NewList ¶ func NewList() *List func (*List) AddOrUpdate ¶ func (l *List) AddOrUpdate(id int, item any) func (*List) Delete ¶ func (l *List) Delete(id int) any func (*List) Exist ¶ func (l *List) Exist(id int) bool func (*List) Get ¶ func (l *List) Get(id int) (index int, item any) func (*List) GetIds ¶ func (l *List) GetIds() (ids []int) func (*List) Reset ¶ func (l *List) Reset() Source Files ¶ View all Source files unique_id_list.go Click to show internal directories. Click to hide internal directories.