After the refactor positions are lost, so code may look a bit weird, for example no empty lines between functions etc.
Simple formatting does not help in this case.
We need to provide some post processing or use existent custom ones like this https://github.com/mbenkmann/goformat