code: func (t *Trending) getUserIDBasedOnAvatarURL(avatarURL *url.URL) int {
  	id := 0
  	if avatarURL == nil {
  		return id
  	}
  
  	re := regexp.MustCompile("u/([0-9]+)")
  	if matches := re.FindStringSubmatch(avatarURL.Path); len(matches) >= 2 && len(matches[1]) > 0 {
  		id, _ = strconv.Atoi(matches[1])
  	}
  	return id
  }
docs: // getUserIDBasedOnAvatarLink determines the UserID based on an avatar link avatarURL