This is a proposal to add a -parallel <n> flag to go generate that runs //go:generate commands concurrently.
If -paralell is provided without a number, concurrency would be unbounded. If parallel is provided with an integer , that would be the max concurrent procs. If -parallel is not supplied, //go:generate commands are run serially as they are now.
If there's mutual interest, I can submit code for review, but I wanted to get feedback first.
This is a proposal to add a
-parallel <n>flag togo generatethat runs//go:generatecommands concurrently.If
-paralellis provided without a number, concurrency would be unbounded. Ifparallelis provided with an integer , that would be the max concurrent procs. If-parallelis not supplied,//go:generatecommands are run serially as they are now.If there's mutual interest, I can submit code for review, but I wanted to get feedback first.