Open AlexanderYastrebov opened 7 months ago
Yep, for better or worse, this is how comments in Go work at the moment. Reordering or moving imports is also a bit broken right now, e.g. see https://github.com/mvdan/gofumpt/issues/225. The handling of import declarations needs a bit of a rethink.
I've noticed this while playing with formatting go sources