Add closures_and_goroutines documentation
parent
f2172a8ea8
commit
190830b827
|
|
@ -39,7 +39,7 @@ func CacheBinariesForBootstrapper(version string, clusterBootstrapper string) er
|
|||
|
||||
var g errgroup.Group
|
||||
for _, bin := range binaries {
|
||||
bin := bin
|
||||
bin := bin // https://golang.org/doc/faq#closures_and_goroutines
|
||||
g.Go(func() error {
|
||||
if _, err := CacheBinary(bin, version, "linux", runtime.GOARCH); err != nil {
|
||||
return errors.Wrapf(err, "caching image %s", bin)
|
||||
|
|
|
|||
Loading…
Reference in New Issue