By default, cmd/errtrace tries not to shift lines between input/output.
The intent here is to be able to use this and get, say, coverage numbers out of your code without line numbers being off.
But with -w, the intent is that you transform your code and check it in.
That code should be well-formatted Go code.
The command should reformat code by default, but probably support opting out.
By default, cmd/errtrace tries not to shift lines between input/output.
The intent here is to be able to use this and get, say, coverage numbers out of your code without line numbers being off.
But with
-w, the intent is that you transform your code and check it in.That code should be well-formatted Go code.
The command should reformat code by default, but probably support opting out.