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. README.md
  2. codereview.cfg
  3. go1.10.1/
  4. go1.10.2/
  5. go1.10.3/
  6. go1.10.4/
  7. go1.10/
  8. go1.10beta1/
  9. go1.10beta2/
  10. go1.10rc1/
  11. go1.10rc2/
  12. go1.11/
  13. go1.11beta1/
  14. go1.11beta2/
  15. go1.11beta3/
  16. go1.11rc1/
  17. go1.11rc2/
  18. go1.8.1/
  19. go1.8.2/
  20. go1.8.3/
  21. go1.8.4/
  22. go1.8.5/
  23. go1.8.6/
  24. go1.8.7/
  25. go1.8/
  26. go1.8beta1/
  27. go1.8beta2/
  28. go1.8rc1/
  29. go1.8rc2/
  30. go1.8rc3/
  31. go1.9.1/
  32. go1.9.2/
  33. go1.9.3/
  34. go1.9.4/
  35. go1.9.5/
  36. go1.9.6/
  37. go1.9.7/
  38. go1.9/
  39. go1.9beta1/
  40. go1.9beta2/
  41. go1.9rc1/
  42. go1.9rc2/
  43. 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.

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.