diff --git a/internal/generate.go b/internal/generate.go index 618cead..46b222d 100644 --- a/internal/generate.go +++ b/internal/generate.go @@ -129,7 +129,7 @@ func generate() error { } } - var pkgs []string + pkgs := make([]string, 0, len(pkgSet)) for pkg := range pkgSet { pkgs = append(pkgs, pkg) }