safeslice

package
v0.0.0-...-5daf3a2 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2020 License: MIT, 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