safeslice

package
v0.0.0-...-2424c55 Latest Latest
Warning

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

Go to latest
Published: May 3, 2020 License: GPL-3.0, Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SafeSlice

type SafeSlice interface {
	Append(interface{})     // Append the given item to the slice
	At(int) interface{}     // Return the item at the given index position
	Close() []interface{}   // Close the channel and return the slice
	Delete(int)             // Delete the item at the given index position
	Len() int               // Return the number of items in the slice
	Update(int, UpdateFunc) // Update the item at the given index position
}

func New

func New() SafeSlice

type UpdateFunc

type UpdateFunc func(interface{}) interface{}

Jump to

Keyboard shortcuts

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