Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add -s flag for gofmt parity #45

Open
johanbrandhorst opened this issue Apr 22, 2018 · 2 comments
Open

Add -s flag for gofmt parity #45

johanbrandhorst opened this issue Apr 22, 2018 · 2 comments

Comments

@johanbrandhorst
Copy link

johanbrandhorst commented Apr 22, 2018

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.

@sqs
Copy link
Owner

sqs commented Apr 22, 2018

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!

@MaerF0x0
Copy link

MaerF0x0 commented Jun 4, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants