Clone or download
matloob go/packages: generate test main files from the golist fallback
Part of the testmain generation logic (sans coverage) has been taken
from go build and put into golist_fallback_testmain.go.
golist_fallback invokes this logic and builds up the package metadata
for the testmain.
The tests checking for testmain are now no longer skipped from

Change-Id: I487a947f087f3ad4161ea6c2bed06ebb2f833422
Run-TryBot: Michael Matloob <>
TryBot-Result: Gobot Gobot <>
Reviewed-by: Alan Donovan <>
Latest commit 90fa682 Sep 7, 2018
Failed to load latest commit information.
benchmark/parse benchmark/parse: fix cosmetic defect in error str. Feb 2, 2015
blog godoc,blog: perform minor cleanup Apr 14, 2018
cmd go/packages: remove the Config.Error hook Sep 4, 2018
container/intsets x/tools/container/intsets: add LowerBound Aug 21, 2017
cover cover: handle multiple samples from the same location Dec 10, 2017
go go/packages: generate test main files from the golist fallback Sep 17, 2018
godoc godoc: fix indenting on Firefox Aug 30, 2018
imports imports: update zstdlib to Go 1.11 Sep 10, 2018
internal/fastwalk imports: extract fastWalk into new package internal/fastwalk Apr 16, 2018
playground playground: increase urlfetch timeout on GAE classic Aug 14, 2018
present all: fix typos in comments Aug 10, 2018
refactor all: fix typos in comments Aug 10, 2018
third_party cmd/heapview: dowgrade to customelements v0 Aug 5, 2016
.gitattributes tools: copying .gitattributes to all subrepositories (fixes windows b… Dec 23, 2014
.gitignore .gitignore: roll back ".gitignore: ignore emacs backup files" Feb 13, 2018
AUTHORS go.empty: prototype for new subrepository Jan 25, 2012 remove note about not accepting Pull Requests Mar 14, 2018
CONTRIBUTORS go.empty: prototype for new subrepository Jan 25, 2012
LICENSE LICENSE: add Mar 17, 2012
PATENTS go.empty: add PATENTS file to the subrepo. Apr 16, 2012 README: switch to Markdown and add links Sep 27, 2017
codereview.cfg tools: add codereview.cfg Mar 18, 2015

Go Tools

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 You can also manually git clone the repository to $GOPATH/src/

Report Issues / Send Patches

This repository uses Gerrit for code changes. To learn how to submit changes to this repository, see

The main issue tracker for the tools repository is located at Prefix your issue with "x/tools/(your subdir):" in the subject line, so it is easy to find.