zuint64s

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInterfaceNotUint64 = errors.New("encountered non-uint64 interface")
)

Functions

func As

func As(slice []interface{}) (res []uint64, err error)

Convert a []interface{} slice into []uint64 slice if possible

func Contains

func Contains(haystack []uint64, needle uint64) bool

Check if a slice ([]uint64) contains a matching member

func ContainsAll

func ContainsAll(haystack []uint64, needles ...uint64) bool

Check if a []uint64 slice contains ALL of the provided members

func ContainsAny

func ContainsAny(haystack []uint64, needles ...uint64) bool

Check if a []uint64 slice contains ANY of the provided members

func Cut

func Cut(slice []uint64, separator uint64) (left, right []uint64, found bool)

Cut the slice into two slices separated by the separator

func CutAny

func CutAny(val []uint64, seperators ...uint64) (left, right []uint64, found bool)

Cut the slice into two slices separated by the first separator

func Equal

func Equal(a []uint64, b []uint64) bool

func Index

func Index(haystack []uint64, needle uint64) int

Find the index where the needle appears. Returns -1 if the needle doesn't appear in the slice.

func Interface

func Interface(slice []uint64) (res []interface{}, err error)

Convert a []uint64 slice into a slice of interfaces ([]interface{})

func Split

func Split(slice []uint64, separator uint64) (parts [][]uint64)

Split the slice into one or more slices separated by the separator

Types

This section is empty.

Jump to

Keyboard shortcuts

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