utils

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2022 License: Apache-2.0 Imports: 3 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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 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