Convert string to bool and always return false if any error
(str string)
| 67 | |
| 68 | // Convert string to bool and always return false if any error |
| 69 | func mustParseBool(str string) bool { |
| 70 | b, err := strconv.ParseBool(str) |
| 71 | if err != nil { |
| 72 | return false |
| 73 | } |
| 74 | return b |
| 75 | } |
no outgoing calls
no test coverage detected