StringToBool converts a string to a boolean ignoring errors
(s string)
| 24 | |
| 25 | // StringToBool converts a string to a boolean ignoring errors |
| 26 | func 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 |
| 32 | func GetAsEqualsMap(em []string) map[string]string { |
no outgoing calls
no test coverage detected
searching dependent graphs…