Skip to content

feature: format && on new line #6552

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

Closed
sergey-safarov opened this issue Apr 28, 2025 · 0 comments
Closed

feature: format && on new line #6552

sergey-safarov opened this issue Apr 28, 2025 · 0 comments

Comments

@sergey-safarov
Copy link

I prefer to use an expression format like

if a == 1
    && b == 2
    && c == 3
{
}

In this case, the new checks added do not trigger the whole string to be overwritable.
Could you make this behavior configurable?

Current behavior.
gofmt reformat expression to

if a == 1 && b == 2 && c == 3
{
}
@ytmimi ytmimi closed this as completed Jun 5, 2025
@ytmimi ytmimi closed this as not planned Won't fix, can't repro, duplicate, stale Jun 5, 2025
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

2 participants