-
Notifications
You must be signed in to change notification settings - Fork 117
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
record invocation arguments in generated code #31
Conversation
mockgen/mockgen.go
Outdated
g.p("") | ||
g.p("// Generated by this command:") | ||
g.p("// %v", strings.Join(os.Args, " ")) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's make this part of the same comment block. Otherwise the new comment block becomes separated from the rest of the package level comment.
g.p("") | |
g.p("// Generated by this command:") | |
g.p("// %v", strings.Join(os.Args, " ")) | |
g.p("//") | |
g.p("// Generated by this command:") | |
g.p("// %v", strings.Join(os.Args, " ")) |
f7ed795
to
23e5425
Compare
23e5425
to
aa0d61f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thanks!
Fixes a regression introduced in #31 (before, mockgen always added an empty line between package comment and preceding comments). “Code generated by” block should not be a part of the package comment.
resolves #554