utils

package
v1.20.2 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2023 License: Apache-2.0 Imports: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ArrayContains added in v1.17.0

func ArrayContains[T comparable](source []T, toCheck []T) bool

func GetAsEqualsMap added in v1.2.7

func GetAsEqualsMap(em []string) map[string]string

GetAsEqualsMap split key=value formatted strings into a key : value map

func GetAsStringList added in v1.2.7

func GetAsStringList(em map[string]string) []string

GetAsEqualsMap format a key : value map into key=value strings

func MapKeys added in v1.17.0

func MapKeys[T comparable, U any](theMap map[T]U) []T

func MapsAppend added in v1.17.0

func MapsAppend[T comparable, U any](target map[T]U, source map[T]U) map[T]U

func StringContains

func StringContains(array []string, needle string) bool

StringContains check if an array contains a specific value

func StringToBool

func StringToBool(s string) bool

StringToBool converts a string to a boolean ignoring errors

Types

This section is empty.

Jump to

Keyboard shortcuts

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