matryer / moq

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

feat: add -build-tag flag. #215

Open njupg opened 5 months ago

njupg commented 5 months ago

We use moq to build mocks for testing beyond the current package. We'd like those mocks to be available only to tests, not live code, so we've been doing this by catting build tags into the generated mocks. This adds a flag to make that process easier.