Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 4 commits into from
Aug 11, 2023
Merged

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

merged 4 commits into from
Aug 11, 2023

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.

mockgen/mockgen.go Outdated Show resolved Hide resolved
@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
mockgen/mockgen.go Outdated Show resolved Hide resolved
@sywhang sywhang merged commit 50aba74 into uber-go:main Aug 11, 2023
2 checks passed
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