Is there an easy way to run go generate ./... and in case that all the file in the pkg that call the generate didn't change- that go generate skip generating again this file? (the reason is time consumption on generate) For example:
-a (directory)
example1.go //contain //go:generate -output generated_example1.go
example2.go //contain //go:generate -output generated_example2.go
...
lets say i have 7 files to generate, and I had changed only file 'example1.go' so when i run go generate ./... I would like that it will not try to generate all the 7 files but only example1 because only this source has changed
(calling the go generate from inner directory will not solve the issue because there are couple of files to generate from same directory.)