utils

package
v0.0.0-...-643a650 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 Filter

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

Filter returns a list of strings with the paramater array filtered out

func Include

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

Include returns true if the target string t is in the slice.

func Index

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

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