code: func (t *Trending) generateURL(mode, time, language string) (*url.URL, error) {
  	urlStr := urlTrendingPath
  	if mode == modeDevelopers {
  		urlStr += urlDevelopersPath
  	}
  
  	u := t.appendBaseHostToPath(urlStr, true)
  	q := u.Query()
  	if len(time) > 0 {
  		q.Set("since", time)
  	}
  
  	if len(language) > 0 {
  		q.Set("l", language)
  	}
  
  	u.RawQuery = q.Encode()
  
  	return u, nil
  }
docs: // generateURL will generate the correct URL to call the github site.
  //
  // Depending on mode, time and language it will set the correct pathes and query parameters.