code: func adjustVersion(v string) string {
  	if len(v) == 0 {
  		return "unknown"
  	}
  	seg := strings.SplitN(v, "-", 2)
  	return seg[0]
  }
docs: // adjustVersion strips "alpha", "beta", etc. from version in form
  // major.minor.patch-[alpha|beta|etc].