slice

package
v1.0.0-bc7 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2019 License: Apache-2.0 Imports: 0 Imported by: 6

Documentation

Overview

Package slice provides a set of functions around slices.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContainsAll

func ContainsAll(slice, containedSlice []string) bool

ContainsAll return true if a string slice contains all elements of another string slice, otherwise returns false.

func HasString

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

HasString returns true if the given string value is found in the provided slice, otherwise returns false.

func IsEmpty

func IsEmpty(slice []string) bool

IsEmpty returns true if a string slice is empty or contains empty string values, otherwise returns false.

Types

This section is empty.

Jump to

Keyboard shortcuts

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