mirror of
https://github.com/golang/go
synced 2024-11-18 14:54:40 -07:00
The Go programming language
bcd5efa0ef
It is sometimes useful for API clients to be able to disable the unused import check, although for good reason this should not be exposed as part of a user-facing interface. There are at least two use cases that I am aware of: 1) It allows for automated test case reduction tools such as delta or C-Reduce to be more easily applied to type checker input. Disabling the check makes it possible for the tool to identify and remove code that depends on imported packages without any specific knowledge of Go, as the import need not be removed simultaneously with the code. 2) Interactive tools (such as REPLs) that may have previously received a list of imports and subsequently receive a line of code that may use any number of these imports. It is simpler for such tools to import all the packages in its list than to try to identify the correct set of imports. Change-Id: I00091a4e5c8e1bd664efd82a636f255eaaa5a2db Reviewed-on: https://go-review.googlesource.com/2136 Reviewed-by: Robert Griesemer <gri@golang.org> |
||
---|---|---|
astutil | ||
blog | ||
cmd | ||
container/intsets | ||
cover | ||
dashboard | ||
go | ||
godoc | ||
imports | ||
oracle | ||
playground | ||
present | ||
refactor | ||
.gitattributes | ||
.gitignore | ||
AUTHORS | ||
CONTRIBUTORS | ||
LICENSE | ||
PATENTS | ||
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 oracle 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.