matryer / moq

Interface mocking tool for go generate
http://bit.ly/meetmoq
MIT License
2k stars 127 forks source link

Use golang.org/x/tools/go/packages instead of loader #76

Closed JelteF closed 4 years ago

JelteF commented 6 years ago

The packages library uses the go build cache to get the info about the AST. This results in insane speedups when moq is used on large codebases.

Our moq calls went from ~16s to less than 1s.

sudo-suhas commented 4 years ago

89 which added Go modules support made this PR obsolte, closing.