code: func SplitReposName(name string) (indexName, remoteName string) {
  	i := strings.IndexRune(name, '/')
  	if i == -1 || (!strings.ContainsAny(name[:i], ".:") && name[:i] != "localhost") {
  		indexName, remoteName = defaultIndexURL, name
  	} else {
  		indexName, remoteName = name[:i], name[i+1:]
  	}
  	if indexName == defaultIndexURL && !strings.ContainsRune(remoteName, '/') {
  		remoteName = defaultRepoPrefix + remoteName
  	}
  	return
  }
docs: // SplitReposName breaks a repo name into an index name and remote name.