slices

package
v0.0.0-...-de2618e Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2022 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Contains

func Contains(vs []string, t string) bool

Contains returns true if the target string t is in the slice, and false otherwise.

func Filter

func Filter(vs []string, f func(string) bool) []string

Filter returns a list of strings from the input which satisfy the function.

func Index

func Index(vs []string, t string) int

Index returns the element index of the string in the array

func RemoveDuplicates

func RemoveDuplicates(vs []string) []string

RemoveDuplicates removes duplicates. Result is unordered

Types

This section is empty.

Jump to

Keyboard shortcuts

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