MCPcopy Create free account
hub / github.com/compose-spec/compose-go / StringToBool

Function StringToBool

utils/stringutils.go:26–29  ·  view source on GitHub ↗

StringToBool converts a string to a boolean ignoring errors

(s string)

Source from the content-addressed store, hash-verified

24
25// StringToBool converts a string to a boolean ignoring errors
26func StringToBool(s string) bool {
27 b, _ := strconv.ParseBool(strings.ToLower(strings.TrimSpace(s)))
28 return b
29}
30
31// GetAsEqualsMap split key=value formatted strings into a key : value map
32func GetAsEqualsMap(em []string) map[string]string {

Callers 1

withConvertWindowsPathsFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…