code: func (t *Trending) appendBaseHostToPath(urlStr string, exists bool) *url.URL {
  	if exists == false {
  		return nil
  	}
  
  	rel, err := url.Parse(urlStr)
  	if err != nil {
  		return nil
  	}
  
  	return t.BaseURL.ResolveReference(rel)
  }
docs: // appendBaseHostToPath will add the base host to a relative url urlStr.
  //
  // A urlStr like "/trending" will be returned as https://github.com/trending