uber-go / mock

GoMock is a mocking framework for the Go programming language.
Apache License 2.0
1.85k stars 106 forks source link

feat: add flag to add go:generate directive in the generated file #46

Closed damianopetrungaro closed 11 months ago

damianopetrungaro commented 11 months ago

As you can read by the PR title, I added a flag (false by default) that allows mockgen to add the go:generate instruction as part of the generated file.

This is something I was looking to see supported, and I finally had some time to add this tiny feature. It would save a lot of time, and it is similar to what other tools already (gowrap for example).

Resolves: #45

CLAassistant commented 11 months ago

CLA assistant check
All committers have signed the CLA.