Hacker News new | ask | show | jobs
by ammar2 903 days ago
Can you give an example of such a tool that analyzes/refactors just the text output of gofmt?

It seems like that approach that would be fraught with errors considering how lenient gofmt can be at times but maybe it would be okay for simple stuff. e.g all of these ways of invoking methods:

   fmt.
           Println("Hello ",
                   "World",
           )

  fmt.Println("Hello ",
          "World")

  fmt.Println("Hello ", "World")