package
0.0.0-20190806085950-af561f6ff7a1
Repository: https://github.com/kylebanks/go-kit.git
Documentation: pkg.go.dev
# README
contains
-- import "github.com/KyleBanks/go-kit/contains/"
Package contains adds a few small helper functions to see if a slice contains a particular value.
Usage
func Int
func Int(val int, arr []int) bool
Int returns true if the slice of ints contains the value provided.
func Uint
func Uint(val uint, arr []uint) bool
Uint returns true if the slice of uints contains the value provided.