containers

package
v0.0.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 15, 2024 License: MIT Imports: 1 Imported by: 1

Documentation

Index

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()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL