Update go version

This commit is contained in:
dwrz
2026-08-21 10:23:37 +00:00
parent 78248a6145
commit c2e2d9ea02
466 changed files with 67766 additions and 2881 deletions

View File

@@ -52,11 +52,9 @@ func ForEachPackage(ctxt *build.Context, found func(importPath string, err error
var wg sync.WaitGroup
for _, root := range ctxt.SrcDirs() {
wg.Add(1)
go func() {
wg.Go(func() {
allPackages(ctxt, root, ch)
wg.Done()
}()
})
}
go func() {
wg.Wait()
@@ -107,11 +105,9 @@ func allPackages(ctxt *build.Context, root string, ch chan<- item) {
}
for _, fi := range files {
if fi.IsDir() {
wg.Add(1)
go func() {
wg.Go(func() {
walkDir(filepath.Join(dir, fi.Name()))
wg.Done()
}()
})
}
}
}