(paramName string, defaultVal bool, r *http.Request)
| 44 | } |
| 45 | |
| 46 | func getOptionalBoolQParam(paramName string, defaultVal bool, r *http.Request) bool { |
| 47 | param := r.URL.Query().Get(paramName) |
| 48 | paramBool, ok := s.ParseBool(param) |
| 49 | if ok { |
| 50 | return paramBool |
| 51 | } |
| 52 | return defaultVal |
| 53 | } |
no outgoing calls
no test coverage detected