slices

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2019 License: MIT Imports: 2 Imported by: 1

Documentation

Overview

Package slices contains methods to simplify a few slice operations

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HasInt

func HasInt(toFind int, slice []int) bool

HasInt looks for a value in a slice, returns true if the value is present, false otherwise

func HasString

func HasString(toFind string, slice []string) bool

HasString looks for a value in a slice, returns true if the value is present, false otherwise

func InSlice

func InSlice(slice, val interface{}) (bool, error)

InSlice looks for a value in a slice, returns true if the value is present, false otherwise

Types

This section is empty.

Jump to

Keyboard shortcuts

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