internal/genv: fix release notes link for minor versions

Also corrected the code in case of unrecognized version.

According to the docs, nil is returned when the regex does not match.
And in case of a partial or full match, the length of the slice
is always equal to the no. of subexpressions.
For the subexpressions that did not match, the string will be empty.

So the length check was logically wrong. It's just that since the length
of a nil slice is 0, it accidentally turned out to be correct.

Fixes golang/go#26976

Change-Id: Ic9e43d13877d747df20c15949436e355d2fd448d
Reviewed-on: https://go-review.googlesource.com/c/160920
Reviewed-by: Filippo Valsorda <filippo@golang.org>
29 files changed
tree: 55c2b08126841565dc6a1be2412b979de98d8a74
  1. README.md
  2. codereview.cfg
  3. go1.10.1/
  4. go1.10.2/
  5. go1.10.3/
  6. go1.10.4/
  7. go1.10.5/
  8. go1.10.6/
  9. go1.10.7/
  10. go1.10.8/
  11. go1.10/
  12. go1.10beta1/
  13. go1.10beta2/
  14. go1.10rc1/
  15. go1.10rc2/
  16. go1.11.1/
  17. go1.11.2/
  18. go1.11.3/
  19. go1.11.4/
  20. go1.11.5/
  21. go1.11/
  22. go1.11beta1/
  23. go1.11beta2/
  24. go1.11beta3/
  25. go1.11rc1/
  26. go1.11rc2/
  27. go1.12beta1/
  28. go1.12beta2/
  29. go1.8.1/
  30. go1.8.2/
  31. go1.8.3/
  32. go1.8.4/
  33. go1.8.5/
  34. go1.8.6/
  35. go1.8.7/
  36. go1.8/
  37. go1.8beta1/
  38. go1.8beta2/
  39. go1.8rc1/
  40. go1.8rc2/
  41. go1.8rc3/
  42. go1.9.1/
  43. go1.9.2/
  44. go1.9.3/
  45. go1.9.4/
  46. go1.9.5/
  47. go1.9.6/
  48. go1.9.7/
  49. go1.9/
  50. go1.9beta1/
  51. go1.9beta2/
  52. go1.9rc1/
  53. go1.9rc2/
  54. gotip/
  55. internal/
README.md

golang.org/dl

This repository holds the Go wrapper programs that run specific versions of Go, such as go get golang.org/dl/go1.10.3 and go get golang.org/dl/gotip.

Report Issues / Send Patches

This repository uses Gerrit for code changes. To learn how to submit changes to this repository, see https://golang.org/doc/contribute.html. The main issue tracker for the net repository is located at https://github.com/golang/go/issues. Prefix your issue with “dl:” in the subject line, so it is easy to find.