1
0
mirror of https://github.com/golang/go synced 2024-09-30 22:38:33 -06:00
go/imports
Ahmy Yulrizka 6e94e8a89f imports: cleanup test due to assignment copies of sync.Once
go vet detected that the value of pkgIndexOnce
is copied through assignments in the test.
This patch fixes that by converting it to *sync.Once instead.

Change-Id: I90b2252942625b2f8a93eb5da24d16c6a8a56e4e
Reviewed-on: https://go-review.googlesource.com/20910
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
2016-03-20 22:53:05 +00:00
..
fix_test.go imports: cleanup test due to assignment copies of sync.Once 2016-03-20 22:53:05 +00:00
fix.go imports: cleanup test due to assignment copies of sync.Once 2016-03-20 22:53:05 +00:00
imports.go imports: add support for vendor directories 2016-02-18 16:47:46 +00:00
mkindex.go go.tools/imports: move goimports from github to go.tools. 2013-12-17 21:21:03 -05:00
mkstdlib.go imports: update static stdlib index to go1.5 2015-09-15 05:17:18 +00:00
sortimports.go imports: Remove ancient Go 1.1 compatibility indirections. 2015-12-14 00:47:31 +00:00
zstdlib.go imports: update static stdlib index to go1.5 2015-09-15 05:17:18 +00:00