commit | f8d1dee965f76837e891ded19dd59ee264db8ddc | [log] [tgz] |
---|---|---|
author | Ian Cottrell <iancottrell@google.com> | Fri May 10 16:36:20 2019 -0400 |
committer | Ian Cottrell <iancottrell@google.com> | Mon Jun 10 23:17:49 2019 +0000 |
tree | 6cf9678db38d1e5025e79608d8dae1bd1559a13f | |
parent | 0945d3616f18a7224b3a184b8a5d5281f0f6daac [diff] |
internal/memoize: a new library to memoize functions This library holds onto results with a weak reference, and guarantees that for as long as a result has not been garbage collected it will return the same result for the same key. Change-Id: I4a4528f31bf8bbf18809cbffe95dc93e05d769fe Reviewed-on: https://go-review.googlesource.com/c/tools/+/180845 Reviewed-by: Rebecca Stambler <rstambler@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.