code: func findVersionedEntry(version string, vers repo.ChartVersions) (*repo.ChartVersion, error) {
  	for _, verEntry := range vers {
  		if len(verEntry.URLs) == 0 {
  			// Not a legit entry.
  			continue
  		}
  
  		if version == "" || versionEquals(version, verEntry.Version) {
  			return verEntry, nil
  		}
  	}
  	return nil, errors.New("no matching version")
  }
docs: // findVersionedEntry takes a ChartVersions list and returns a single chart version that satisfies the version constraints.
  //
  // If version is empty, the first chart found is returned.