utils

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2020 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppendValuesToStringArrayIfNotPresent added in v1.3.0

func AppendValuesToStringArrayIfNotPresent(a []string, values ...string) []string

func IndexOfString added in v1.3.0

func IndexOfString(a []string, v string) int

func MergeMap

func MergeMap(destination map[string]string, sources ...map[string]string) map[string]string

MergeMap will take two maps, merging the entries of the source map into destination map. If both maps share the same key then destination's value for that key will be overwritten with what's in source.

func RemoveValueFromStringArray added in v1.3.0

func RemoveValueFromStringArray(a []string, v string) []string

func SearchMap

func SearchMap(mapToSearch map[string]interface{}, key string) map[string]interface{}

SearchMap will recursively search a map looking for a key with a value of another map

Types

This section is empty.

Jump to

Keyboard shortcuts

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