On Wednesday, January 29, 2020 at 8:38:56 PM UTC+1, Amnon Baron Cohen wrote: > > > > On Wednesday, 29 January 2020 17:56:35 UTC, Manlio Perillo wrote: >> >> Is this reasonable? >> >> > Not really, as it would generate many gratuitous changes to existing code. > This is one thing gofmt avoids. >
That's the reason why the reformatting should be done by a separate tool, not by gofmt. gofmt should not reformat the code to the new style, but it should check if the tab is used and don't change it. Thanks Manlio Perillo -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/0ad67fdb-6a13-46ce-9cf8-5ab29583804f%40googlegroups.com.