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

Placement of the multi-line function call closing parenthesis #3

Open
quasilyte opened this issue Aug 26, 2018 · 1 comment
Open

Placement of the multi-line function call closing parenthesis #3

quasilyte opened this issue Aug 26, 2018 · 1 comment

Comments

@quasilyte
Copy link
Owner

There are at least 2 ways that comply to gofmt:

// (A)
_ = fn(
	a,
	b)
// (B)
_ = fn(
	a,
	b,
)

There are also different ways to place first argument, but most likely it can be handled with the same technique that will be used for the case above.

// (A)
_ = fn(
	a,
	b)
// (B)
_ = fn(a,
	b)

Whether this belongs to the go-consistent scope is an open question too.

@quasilyte
Copy link
Owner Author

Same thing applies to multi-line composite literals.

quasilyte added a commit that referenced this issue Oct 26, 2018
Updates #3

Signed-off-by: Iskander Sharipov <quasilyte@gmail.com>
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

1 participant