code: func parseLimit(req *http.Request, limit *int) error {
  	*limit = 0
  	if arg := req.URL.Query().Get("limit"); arg != "" {
  		i, err := strconv.Atoi(arg)
  		if err != nil {
  			return err
  		}
  		*limit = i
  	}
  	return nil
  }
docs: // parseLimit parses the optional limit parameter for a prepared query execution.