internal/version: simplify versionArchiveURL

versionArchiveURL always return nil error. It's unexported, so it's
easy to simplify it. If it needs to return an error in the future,
it can be changed accordingly at that time.

Also move goURL declaration just before use, rather than earlier.

Change-Id: I7f16e42b35852cb7bfb5b854e8be7a468e7efdde
GitHub-Last-Rev: a609f1c6c6a5d84fe392f9e132dd46bea4b35b60
GitHub-Pull-Request: golang/dl#2
Reviewed-on: https://go-review.googlesource.com/134435
Reviewed-by: Andrew Bonventre <andybons@golang.org>
1 file changed
tree: 4fdf962c9418ce029b93cf22670d971b7350a603
  1. go1.10/
  2. go1.10.1/
  3. go1.10.2/
  4. go1.10.3/
  5. go1.10.4/
  6. go1.10beta1/
  7. go1.10beta2/
  8. go1.10rc1/
  9. go1.10rc2/
  10. go1.11/
  11. go1.11beta1/
  12. go1.11beta2/
  13. go1.11beta3/
  14. go1.11rc1/
  15. go1.11rc2/
  16. go1.8/
  17. go1.8.1/
  18. go1.8.2/
  19. go1.8.3/
  20. go1.8.4/
  21. go1.8.5/
  22. go1.8.6/
  23. go1.8.7/
  24. go1.8beta1/
  25. go1.8beta2/
  26. go1.8rc1/
  27. go1.8rc2/
  28. go1.8rc3/
  29. go1.9/
  30. go1.9.1/
  31. go1.9.2/
  32. go1.9.3/
  33. go1.9.4/
  34. go1.9.5/
  35. go1.9.6/
  36. go1.9.7/
  37. go1.9beta1/
  38. go1.9beta2/
  39. go1.9rc1/
  40. go1.9rc2/
  41. internal/
  42. codereview.cfg
  43. README.md
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.

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.