offer the more common -w for write
philoserf opened this issue · comments
Mark Ayers commented
-r rewrite doesn't follow the common golang model of -w write found in core utilities like gofmt, goimports, or goreturns.
as a nod to common practice add it and deprecate -r for the next release
Robert Griesemer commented
It's really a r
ewrite, not so much a formatted w
rite, hence the -r
. But fine. I'll change it in the next round of changes.
Mark Ayers commented
It is exactly what gofmt does with -w much like gofmt -s -w
Mark Ayers commented
Not attached to it. Just found the -r surprising
Mark Ayers commented
I found a few examples that use -r, replace. Who know what is right with names?