Add closures_and_goroutines documentation

pull/4926/head
josedonizetti 2019-07-30 16:52:42 -03:00
parent f2172a8ea8
commit 190830b827
1 changed files with 1 additions and 1 deletions

View File

@ -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)