[readme.md] so, what exactly is `go/loader`?
Closed this issue · 3 comments
metaleap commented
In the repo readme:
This package relies on
go/types
for the heavy lifting: name resolution, constant folding and type inference. It also usesgo/loader
to resolve the packages specified by import paths.
I'd be curious to use the latter in other code, but I don't find any actual go/loader
imports in your .go
sources here and no mention of loader
at https://golang.org/pkg/go/ either --- what is it?
metaleap commented
Ah OK, found at https://godoc.org/golang.org/x/tools/go/loader
dmitshur commented
It might be more clear to refer to it as x/tools/go/loader
, or by its full import path.