code: func (c *Client) RateLimits(ctx context.Context) (*RateLimits, *Response, error) {
  	req, err := c.NewRequest("GET", "rate_limit", nil)
  	if err != nil {
  		return nil, nil, err
  	}
  
  	response := new(struct {
  		Resources *RateLimits `json:"resources"`
  	})
  	resp, err := c.Do(ctx, req, response)
  	if err != nil {
  		return nil, nil, err
  	}
  
  	if response.Resources != nil {
  		c.rateMu.Lock()
  		if response.Resources.Core != nil {
  			c.rateLimits[coreCategory] = *response.Resources.Core
  		}
  		if response.Resources.Search != nil {
  			c.rateLimits[searchCategory] = *response.Resources.Search
  		}
  		c.rateMu.Unlock()
  	}
  
  	return response.Resources, resp, nil
  }
docs: // RateLimits returns the rate limits for the current client.