commit | ecc01b77164e1ea79b7aba2621266c1befb64725 | [log] [tgz] |
---|---|---|
author | Rebecca Stambler <rstambler@golang.org> | Tue Jun 11 21:16:35 2019 -0400 |
committer | Rebecca Stambler <rstambler@golang.org> | Wed Jun 12 16:51:35 2019 +0000 |
tree | dca8d42fe947afc3445ad94bf09f211a7e749268 | |
parent | d73e1c7e250b19f9948138e2df37cea712e8f06f [diff] |
internal/memoize: document the complicated parts of the memoize package This change is more of an exercise for myself to better understand the implementation of the memoize package. It adds detailed documentation for the get function in particular. I also modified the tests to use a table-driven test format. I'm not certain if this was the right approach (in case we want to add a different type of test case in the future), but for now, it seems to work fine. Change-Id: I191a3b65af230e0af54b221c9f671582adec6c79 Reviewed-on: https://go-review.googlesource.com/c/tools/+/181685 Run-TryBot: Rebecca Stambler <rstambler@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Ian Cottrell <iancottrell@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.