Skip to content

Conversation

@damianopetrungaro
Copy link
Contributor

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
Copy link

CLAassistant commented Jul 23, 2023

CLA assistant check
All committers have signed the CLA.

@damianopetrungaro damianopetrungaro changed the title feat: add flag to generate go:generate instruction in the generate file feat: add flag to add go:generate directive in the generated file Aug 6, 2023
@sywhang sywhang merged commit 50aba74 into uber-go:main Aug 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add flag to generate go:generate instruction in the generate file

6 participants