goreturns icon indicating copy to clipboard operation
goreturns copied to clipboard

Add -s flag for gofmt parity

Open johanbrandhorst opened this issue 6 years ago • 2 comments

gofmt offers a -s parameter for simplifying code, which is quite nice. I think goreturns should add this parameter as well since it promises to support a superset of gofmt's features, and I'd like both simplified code and auto-returns.

johanbrandhorst avatar Apr 22 '18 22:04 johanbrandhorst

Yes, this would be great. Overall I would like to overhaul goreturns soon and make it shell out to goimports/gofmt and (probably) pass along flags to future-proof it.

A PR for this would be gladly accepted to get this in sooner, though!

sqs avatar Apr 22 '18 22:04 sqs

is this still the planned path? I can see if I can handle -s

MaerF0x0 avatar Jun 04 '19 18:06 MaerF0x0