code: func lastComponent(s string) string {
  	lastSlash := strings.LastIndex(s, "/")
  	if lastSlash != -1 {
  		s = s[lastSlash+1:]
  	}
  	return s
  }
docs: // Returns the last component of a URL, i.e. anything after the last slash
  // If there is no slash, returns the whole string