container

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type List

type List[T ListElement] struct {
	// contains filtered or unexported fields
}

func NewList

func NewList[T ListElement](unsafe ...bool) *List[T]

func (*List[T]) Add

func (l *List[T]) Add(item T)

func (*List[T]) Clear

func (l *List[T]) Clear()

func (*List[T]) IndexOf

func (l *List[T]) IndexOf(item T) int

func (*List[T]) ItemOf

func (l *List[T]) ItemOf(idx int) *T

func (*List[T]) Items

func (l *List[T]) Items() []T

func (*List[T]) Remove

func (l *List[T]) Remove(item T)

func (*List[T]) Size

func (l *List[T]) Size() int

type ListElement

type ListElement interface {
	~int | ~int8 | ~int16 | ~int32 | ~int64 |
		~uint | ~uint8 | ~uint16 | ~uint32 | ~uint64 | ~uintptr |
		~float32 | ~float64 |
		~string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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