commit | 657575a5644adc4f31b3ee3107506950c82a2eed | [log] [tgz] |
---|---|---|
author | Russ Cox <rsc@golang.org> | Mon Mar 09 22:20:35 2020 -0400 |
committer | Russ Cox <rsc@golang.org> | Fri Mar 13 20:55:18 2020 +0000 |
tree | 255e9ce95a2294c526217565fcd705897cbb79af | |
parent | 177551569704d42a66ad89f41a3075d495d5e0e9 [diff] |
present: record info in AST for reproducing present inputs Commands like .code now have a TemplateCmd method that returns the original command. The Text struct now has a Raw field set when Pre==true. It contains the original indented text, without the tab "fixing". This helps building tooling that reformats or rewrites present files. For golang/go#33955. Change-Id: Ieb036e8b509a4531d120c597b19f2158306a5352 Reviewed-on: https://go-review.googlesource.com/c/tools/+/222845 Run-TryBot: Russ Cox <rsc@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Rob Pike <r@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.