x/tools/gopls: could not import C (no package for import C ...
github.com › golang › goAug 05, 2020 · import C should not give the "could not import C (no package for import C)" error on vscode, since the code does compile and run without problems with go build. What did you see instead? A "could not import C (no package for import C)" error. Zincr0 mentioned this issue on Aug 5, 2020 x/tools/gopls: improve support for authoring cgo packages #35721