functional

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContainsString added in v0.2.0

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

func HasAnyPrefix added in v0.2.0

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

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

func IntersectStringSlice added in v0.1.3

func IntersectStringSlice(slices ...[]string) []string

IntersectStringSlice takes the intersection of the slices. Semantically: 1. [],[a,b] -> []: Empty set will always result in [] 2. nil,[a,b] -> [a,b]: Nil is the universal set and does not constrain 3. ([a,b],[b]) -> [b]: Takes the intersection of the two sets

func StringSliceWithout added in v0.2.7

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

func UnionStringMaps added in v0.1.3

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

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

func UniqueStrings added in v0.1.3

func UniqueStrings(strings []string) []string

Types

This section is empty.

Jump to

Keyboard shortcuts

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