Clone this repo:

Branches

  1. e37f269 content/static: fix collapsed spacing in preformatted blocks by Ben Hoyt · 2 weeks ago master
  2. 5cc0176 content/static/doc: fix typos in mod.md by Rodolfo Carvalho · 3 weeks ago
  3. 12a37bd internal/history: document Go 1.15.5 and Go 1.14.12 by Katie Hockman · 3 weeks ago
  4. 8d9b164 internal/history: document upcoming Go 1.15.5 and Go 1.14.12 security releases by Katie Hockman · 3 weeks ago
  5. 7c6e92b internal/history: document Go 1.15.4 and Go 1.14.11 by Alexander Rakoczy · 4 weeks ago

Go website

This repository holds the Go website server code and content.

Checkout and Run

To download and run the golang.org web server locally:

  • git clone https://go.googlesource.com/website
  • cd website
  • go run ./cmd/golangorg
  • Open http://localhost:6060/ in your browser.

See cmd/golangorg/README.md for more details.

Changing Content

To make basic changes to the golang.org website content:

  • Make the changes you want in the content/static directory.
  • Stop any running go run ./cmd/golangorg.
  • go generate ./content/static
  • go run ./cmd/golangorg
  • Open http://localhost:6060/ in your browser.

See content/README.md for more sophisticated instructions.

JS/CSS Formatting

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.

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 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.