func parseLimitParam(r *http.Request, defaultValue int) int {
	const name = "limit"
	param := r.FormValue(name)
	if param == "" {
		return defaultValue
	}
	val, err := strconv.Atoi(param)
	if err != nil {
		log.Errorf(r.Context(), "parsing query parameter %q: %v", name, err)
		return defaultValue
	}
	return val
}
// parseLimitParam parses the query parameter with name as in integer. If the
// parameter is missing or there is a parse error, it is logged and the default
// value is returned.
parseLimitParam parses the query parameter with name as in integer. If the
parameter is missing or there is a parse error, it is logged and the default
value is returned.
// parseLimitParam parses the query parameter with name as in integer . If the // parameter is missing or there is a parse error it is logged and the default // value is returned .
func parseLimitParam(r *http.Request, defaultValue int) int {
	const name = "limit"
	param := r.FormValue(name)
	if param == "" {
		return defaultValue
	}
	val, err := strconv.Atoi(param)
	if err != nil {
		log.Errorf(r.Context(), "parsing query parameter %q: %v", name, err)
		return defaultValue
	}
	return val
}
func parseLimitParam ( r * http . Request , defaultValue int ) int { const name = " " param := r . FormValue ( name ) if param == " " { return defaultValue } val , err := strconv . Atoi ( param ) if err != nil { log . Errorf ( r . Context ( ) , " " , name , err ) return defaultValue } return val }
parseLimitParam parses the query parameter with name as in integer.
parseLimitParam parses the query parameter with name as in integer .