functional

package
v0.11.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContainsString

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

func HasAnyPrefix

func HasAnyPrefix(s string, prefixes ...string) bool

HasAnyPrefix returns true if any of the provided prefixes match the given string s

func SplitCommaSeparatedString added in v0.10.1

func SplitCommaSeparatedString(value string) []string

SplitCommaSeparatedString splits a string by commas, removes whitespace, and returns a slice of strings

func StringSliceWithout

func StringSliceWithout(vals []string, remove ...string) []string

func UnionStringMaps

func UnionStringMaps(maps ...map[string]string) map[string]string

UnionStringMaps merges all key value pairs into a single map, last write wins.

Types

This section is empty.

Jump to

Keyboard shortcuts

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