commit | 58a31798e86f7e67791de8767e8353f734576199 | [log] [tgz] |
---|---|---|
author | Dmitri Shuralyov <dmitshur@golang.org> | Wed Jun 17 12:52:28 2020 -0400 |
committer | Dmitri Shuralyov <dmitshur@golang.org> | Tue Jun 30 00:42:23 2020 +0000 |
tree | 3281d3f979278ae6c3481a2d642ed2f9eaa42e07 | |
parent | a8b925aaacb11c1ab7fda93f1ef91bdc531c2df9 [diff] |
internal/dl: use /dl/{file} URLs on /dl/ HTML page The /dl/{file} URLs have been supported for many years but not well documented. Start using them on the /dl/ HTML page and document them, so that it is clear that they can be reliably used in scripts or so. This causes clients to have to make an extra HTTP request (which gets redirected to the target location serving the file bytes), but compared to the total work to download a Go file, this is negligible. Clients that really want to skip the redirect can do so, but the trade-off is that they need to update the URL if the CDN used for Go file downloads happens to change. The /dl/{file} links are not expected to change for Go 1. Fixes golang/go#38713. Change-Id: I9df7d5b761baa6fa657c5dd2063c97b9b457367c Reviewed-on: https://go-review.googlesource.com/c/website/+/238517 Run-TryBot: Dmitri Shuralyov <dmitshur@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Alexander Rakoczy <alex@golang.org> Reviewed-by: Andrew Bonventre <andybons@golang.org>
This repository holds the Go Website server code and content.
The easiest way to install is to run go get -u golang.org/x/website
. You can also manually git clone the repository to $GOPATH/src/golang.org/x/website
.
This repository uses prettier to format JS and CSS files.
The version of prettier
used is 1.18.2.
It is encouraged that all JS and CSS code be run through this before submitting a change. However, it is not a strict requirement enforced by CI.
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 website repository is located at https://github.com/golang/go/issues. Prefix your issue with “x/website:” in the subject line, so it is easy to find.