code: func GetLimit(r *http.Request, def int) int {
  	sLimit := r.FormValue("limit")
  	if sLimit == "" {
  		sLimit = r.FormValue("numbuilds")
  		if sLimit == "" {
  			sLimit = r.FormValue("num_builds")
  			if sLimit == "" {
  				return def
  			}
  		}
  	}
  	limit, err := strconv.Atoi(sLimit)
  	if err != nil || limit < 0 {
  		return def
  	}
  	return limit
  }
docs: // GetLimit extracts the "limit", "numbuilds", or "num_builds" http param from
  // the request, or returns def implying no limit was specified.