Closed karatekaneen closed 1 year ago
I can't reproduce that here using that file. (I'm on the same version of macOS, with the same versions of golines and go as you.) My guess is that your problem is related to goimports
being out of date. Take a look at these two old issues.
Thank you! You are completely correct and this solved my issue.
When trying to run golines on a file with a generic function it fails with "Error formatting source: exit status 2".
Environment OS: OSX 12.6.3 - Monterey Version: 0.11 Go: 1.20.1
To reproduce