Support -local flag for goimports #491
Description
Dear gomock developers,
we started using a master version of gomock in order to benefit from #458 and stop the "fix goimports" comments on all of our PRs.
The generated mocks have their imports divided in two blocks. However, we want to run goimports in our repository with the -local flag, see https://github.com/golang/tools/blob/master/cmd/goimports/goimports.go#L55, which leads to three blocks imports.
flag.StringVar(&options.LocalPrefix, "local", "", "put imports beginning with this string after 3rd-party packages; comma-separated list")
The issue now, is that if we run goimports with our custom yet common configuration, the mock files are changed.
Would it be possible to forward this flag from outside to the goimports executed after mock generation? It is not possible to exclude files from being changed by goimports, so only a fix here would do the trick.
Cheers,
Mark
PS: Any plans when to cut the 1.5 release?