commit | 124927303841b47b9b70df53aec5eff8508ef9e3 | [log] [tgz] |
---|---|---|
author | Ian Cottrell <iancottrell@google.com> | Tue Mar 24 21:30:31 2020 -0400 |
committer | Ian Cottrell <iancottrell@google.com> | Thu Mar 26 17:45:58 2020 +0000 |
tree | 34ee34b43dc2f1a12986f38d4507da23fa92753c | |
parent | 063d392fe0837e006c90a9d000396ec205ce0ab4 [diff] |
internal/telemetry: make metrics take a strongly typed key Now that keys are solidly typed, we can use them for the metrics. This prevents accidentally using the wrong type of key, and allows us to use the typed accesorrs rather than the raw value. Change-Id: I553bd8e12128d3f00a3e926dbd3bfd420cd3f135 Reviewed-on: https://go-review.googlesource.com/c/tools/+/225378 Run-TryBot: Ian Cottrell <iancottrell@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Robert Findley <rfindley@google.com>
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.