What is the recommended module-aware implementation of types.Importer?

65 views
Skip to first unread message

sia...@gmail.com

unread,
Sep 3, 2021, 7:03:51 AM9/3/21
to golang-nuts
Hi! I am trying to type check a Go module.


https://pkg.go.dev/go/importer#Default works well, however, it is not module-aware. Is golang.org/x/tools/go/packages the only way to load and type-check a Go module?

Thanks!
Reply all
Reply to author
Forward
0 new messages