[go-nuts] Re: Load function from golang.org/x/tools/go/packages throws "argument list too long" error

2020-01-30 Thread adam.welc via golang-nuts
The answer to both of the questions is that I followed this examples from the ssa package (LoadWholeProgram): // Load, parse, and type-check the whole program. cfg := packages.Config{Mode: packages.LoadAllSyntax} initial, err := packages.Load(&cfg,

[go-nuts] Load function from golang.org/x/tools/go/packages throws "argument list too long" error

2020-01-29 Thread adam.welc via golang-nuts
I am trying to analyze a large application using Go's static analysis support. I am using the "packages" package to load all application packages using the Load function. Unfortunately t