sliceutil

package module
v0.0.0-...-6331e32 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2018 License: BSD-3-Clause Imports: 1 Imported by: 5

README

sliceutil: slice manipulation helpers

Collection of various functions to work on slices.

GoDoc

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Has

func Has(s, v interface{}) bool

Has checks whether a given value is present in a slice or not.

func IndexOf

func IndexOf(s, v interface{}) int

IndexOf returns the index of a given value in a slice, or -1 if not found

func Reverse

func Reverse(s interface{})

Reverse reverses the items order in a slice.

Types

This section is empty.

Jump to

Keyboard shortcuts

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