mvdan/interfacer

[readme.md] so, what exactly is `go/loader`?

Closed this issue · 3 comments

In the repo readme:

This package relies on go/types for the heavy lifting: name resolution, constant folding and type inference. It also uses go/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?

It might be more clear to refer to it as x/tools/go/loader, or by its full import path.

mvdan commented

I'll just clean that up - nowadays, the use of go/types and x/tools/go/loader is common and doesn't need to be in the README.

Also, re-reading that bit made me realise how I introduced #34 :)