commit | ed5a15cbaa4266cbe97eced11b670037c9f97736 | [log] [tgz] |
---|---|---|
author | Russ Cox <rsc@golang.org> | Thu Apr 15 12:48:06 2021 -0400 |
committer | Gopher Robot <gobot@golang.org> | Fri Mar 25 21:22:33 2022 +0000 |
tree | df943b7bfcba984568fe0c03648f99423dca9e4a | |
parent | f4515dde7950dcca340dbca4670ff90b06e3d1d2 [diff] |
go/internal/gcimporter: replace assert with more helpful panic If this code is misused, the result of the assert is panic: assertion failed This CL replaces the panic text with a useful message. Change-Id: I3710ebe975e7f1e907b0378e9c67dd0c224492fb Reviewed-on: https://go-review.googlesource.com/c/tools/+/310513 Trust: Russ Cox <rsc@golang.org> Run-TryBot: Russ Cox <rsc@golang.org> Reviewed-by: Austin Clements <austin@google.com> Auto-Submit: Russ Cox <rsc@golang.org> gopls-CI: kokoro <noreply+kokoro@google.com> TryBot-Result: Gopher Robot <gobot@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 install
.
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 install golang.org/x/tools/...@latest
.
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 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.