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
proposal: cmd/go: make go:generate support wildcard patterns #31591
Comments
It should be simple to just let the shell expand the wildcard. Write something like
|
The shell is not available on some platforms, like Windows. The solution is to implement your own wildcard expansion tool in a subdirectory, let's say
That should work on all platforms. Maybe there is already a tool like gentool out there, if not it's a few hours work to make one that does what you want. |
You can already do |
|
@ali-farooq0 See the comments above. We've decided not to do this. Do it in the tool invoked by go:generate instead. |
I execute the following command:
//go:generate cp *.proto ./mydir/
prompt:
The text was updated successfully, but these errors were encountered: