(query string, defaultValue bool)
| 1269 | } |
| 1270 | |
| 1271 | func (h *handler) getOptBoolQuery(query string, defaultValue bool) (result, isSet bool) { |
| 1272 | q := h.getQuery(query) |
| 1273 | if q == "" { |
| 1274 | return defaultValue, false |
| 1275 | } |
| 1276 | return q == "true", true |
| 1277 | } |
| 1278 | |
| 1279 | // Returns the integer value of a URL query, defaulting to 0 if unparseable |
| 1280 | func (h *handler) getIntQuery(query string, defaultValue uint64) (value uint64) { |
no test coverage detected