You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
Thinking a -format={always,never,auto} situation with auto being the default.
Better than a boolean yes/no, allowing us to pick a "on with -w, off without"
Activity
abhinav commentedon Nov 22, 2023
Thinking a
-format={always,never,auto}situation with auto being the default.Better than a boolean yes/no, allowing us to pick a "on with -w, off without"
cmd: Format by default on -w, add -format flag
cmd: Format by default on -w, add -format flag (#23)