slices

package
v0.0.0-...-e8b1e36 Latest Latest
Warning

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

Go to latest
Published: May 24, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContainsAnyString

func ContainsAnyString(strings interface{}, query interface{}) bool

ContainsAnyString checks if an []interface{} slice contains a query string

func ContainsString

func ContainsString(strings []string, query string) bool

ContainsString checks if a []string slice contains a query string

func FilterString

func FilterString(ss []string, test func(string) bool) (ret []string)

FilterString returns a copy of a slice with the items that return true when passed to `test`

func StringKeys

func StringKeys(m interface{}) []string

StringKeys returns the keys from a map[string]interface{} as a sorted []string slice

func StringSlice

func StringSlice(strings interface{}) []string

StringSlice converts an []interface{} slice to a []string slice

Types

This section is empty.

Jump to

Keyboard shortcuts

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