foursquare.go
func ParseRate(resp *http.Response) *RateLimit {
	limit := resp.Header.Get(headerRateLimit)
	path := resp.Header.Get(headerRatePath)
	remain := resp.Header.Get(headerRateRemaining)

	l, _ := strconv.Atoi(limit)
	r, _ := strconv.Atoi(remain)

	return &RateLimit{
		Limit:     l,
		Path:      path,
		Remaining: r,
	}
}
func ParseRate(resp *http.Response) *RateLimit {
	limit := resp.Header.Get(headerRateLimit)
	path := resp.Header.Get(headerRatePath)
	remain := resp.Header.Get(headerRateRemaining)

	l, _ := strconv.Atoi(limit)
	r, _ := strconv.Atoi(remain)

	return &RateLimit{
		Limit:     l,
		Path:      path,
		Remaining: r,
	}
}
func ParseRate ( resp * http . Response ) * RateLimit { limit := resp . Header . Get ( headerRateLimit ) path := resp . Header . Get ( headerRatePath ) remain := resp . Header . Get ( headerRateRemaining ) l , _ := strconv . Atoi ( limit ) r , _ := strconv . Atoi ( remain ) return & RateLimit { Limit : l , Path : path , Remaining : r , } }
// ParseRate is a helper function to get all the Rate info
ParseRate is a helper function to get all the Rate info