commit | 0e57ebad1d6b3a6c2d423576b4455ba6818a15e2 | [log] [tgz] |
---|---|---|
author | Andrew Gerrand <adg@golang.org> | Wed Oct 10 18:01:02 2018 +1100 |
committer | Andrew Gerrand <adg@golang.org> | Thu Oct 11 02:11:41 2018 +0000 |
tree | b0b1fa05f55bfe977ab6fe46d40f6c4922951087 | |
parent | 38981630ecb498da1c103c57bf9b8edb43715328 [diff] |
godoc/static: prevent menu "bouncing" when showing Play button The code as written would use JavaScript to show the "Play" button in the menu when the Playground is enabled, making the button appear after the page first renders, causing a visible "bounce" in the menu. This change checks the condition (whether this is not the front page, or "wide") in the template code, instead of with JavaScript after the page has loaded. Change-Id: Iccf0a344116372f3207158793be8c7734e67a4ae Reviewed-on: https://go-review.googlesource.com/c/140798 Reviewed-by: Andrew Bonventre <andybons@golang.org>
This subrepository holds the source for various packages and tools that support the Go programming language.
Some of the tools, godoc
and vet
for example, are included in binary Go distributions.
Others, including the Go guru
and the test coverage tool, can be fetched with go get
.
Packages include a type-checker for Go and an implementation of the Static Single Assignment form (SSA) representation for Go programs.
The easiest way to install is to run go get -u golang.org/x/tools/...
. You can also manually git clone the repository to $GOPATH/src/golang.org/x/tools
.
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 tools repository is located at https://github.com/golang/go/issues. Prefix your issue with “x/tools/(your subdir):” in the subject line, so it is easy to find.