mirror of https://github.com/golang/go.git
In the loader API, (*Config).Import, like go/build, accepts relative paths such as ".", but (*Program).Package requires the exact path of a loaded package. So, to find the package identified by "." we must look at the set of packages actually loaded, which in this scenario is guaranteed to be a singleton. (This is a definite weakness of the loader API. In the more general case where two or more packages are imported, it's tricky to correlate the calls to Import with the package(s) each call actually loads.) Fixes golang/go#20751 Change-Id: I925e969c9b4f4d6b6344c16f156b47857436d70a Reviewed-on: https://go-review.googlesource.com/46414 Reviewed-by: Josh Bleecher Snyder <josharian@gmail.com> |
||
|---|---|---|
| benchmark/parse | ||
| blog | ||
| cmd | ||
| container/intsets | ||
| cover | ||
| go | ||
| godoc | ||
| imports | ||
| playground | ||
| present | ||
| refactor | ||
| third_party | ||
| .gitattributes | ||
| .gitignore | ||
| AUTHORS | ||
| CONTRIBUTING.md | ||
| CONTRIBUTORS | ||
| LICENSE | ||
| PATENTS | ||
| README | ||
| codereview.cfg | ||
README
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. To submit changes to this repository, see http://golang.org/doc/contribute.html.