5 ms·
gofmt -r applies rewrite rules, and -s also performs source transformations; both change the code.
by moonlighter 12y ago
gofmt -r applies rewrite rules, and -s also performs source transformations; both change the code.
- NateDad 12y agogofmt without flags does not change your code. Yes, you can ask it to change your code if you want it to, but by default, it won't.