(str string)
| 25 | } |
| 26 | |
| 27 | func StringToBool(str string) (bool, error) { |
| 28 | restartDeploymentBool, err := strconv.ParseBool(strings.ToLower(str)) |
| 29 | if err != nil { |
| 30 | return false, err |
| 31 | } |
| 32 | return restartDeploymentBool, nil |
| 33 | } |
no outgoing calls
no test coverage detected