code: func (t *Trending) generateLanguages(mainSelector string) ([]Language, error) {
  	var languages []Language
  
  	// Generate the URL to call
  	u, err := t.generateURL(modeLanguages, "", "")
  	if err != nil {
  		return languages, err
  	}
  
  	// Get document
  	res, err := t.Client.Get(u.String())
  	if err != nil {
  		return languages, err
  	}
  
  	doc, err := goquery.NewDocumentFromResponse(res)
  	if err != nil {
  		return languages, err
  	}
  
  	// Query our information
  	doc.Find(mainSelector).Each(func(i int, s *goquery.Selection) {
  		languageAddress, _ := s.Attr("href")
  		languageURLName := ""
  
  		filterURL, _ := url.Parse(languageAddress)
  
  		re := regexp.MustCompile("github.com/trending/([^/\\?]*)")
  		if matches := re.FindStringSubmatch(languageAddress); len(matches) >= 2 && len(matches[1]) > 0 {
  			languageURLName = matches[1]
  		}
  
  		language := Language{
  			Name:    strings.TrimSpace(s.Text()),
  			URLName: languageURLName,
  			URL:     filterURL,
  		}
  		languages = append(languages, language)
  	})
  
  	return languages, nil
  }
docs: // generateLanguages will retrieve the languages out of the github document.
  // Trending languages are shown on the right side as a small list.
  // Other languages are hidden in a dropdown at this site