3 ms·
Possibly, but by moving flags up to the constants you also run the risk of obfuscating things further. A little bit of repetition when it comes to compiler flag
by clra 9y ago
Possibly, but by moving flags up to the constants you also run the risk of obfuscating things further. A little bit of repetition when it comes to compiler flags (especially in Go where there are relatively few) is a good trade for the added clarity it conveys.
Invoking a particular binary is valid, but even there, you only need one constant, not one for every subcommand.