mirror of
https://github.com/golang/go.git
synced 2025-05-05 15:43:04 +00:00
Updated CodeReviewComments (markdown)
parent
f5c3dc2a44
commit
1f9a1797f5
@ -220,6 +220,12 @@ import (
|
||||
|
||||
<a href="https://godoc.org/golang.org/x/tools/cmd/goimports">goimports</a> will do this for you.
|
||||
|
||||
## ImportBlank
|
||||
|
||||
Packages that are imported only for their side effects (using the syntax `import
|
||||
_ "pkg"`) should only be imported in the main package of a program, or in tests
|
||||
that require them.
|
||||
|
||||
## Import Dot
|
||||
|
||||
The import . form can be useful in tests that, due to circular dependencies, cannot be made part of the package being tested:
|
||||
|
Loading…
x
Reference in New Issue
Block a user