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

cmd/gofmt: two dimensional slice/array formatting #8974

Open
gopherbot opened this issue Oct 21, 2014 · 3 comments
Open

cmd/gofmt: two dimensional slice/array formatting #8974

gopherbot opened this issue Oct 21, 2014 · 3 comments
Labels
Milestone

Comments

@gopherbot
Copy link

@gopherbot gopherbot commented Oct 21, 2014

by mrekucci:

go version go1.3.1 darwin/amd64

Try to format next code snippet: http://play.golang.org/p/b0tIzdvp9i
In my opinion the code should be formatted in a way how it looks like
before formatting i.e. columns aligned to comma.
@ianlancetaylor
Copy link
Contributor

@ianlancetaylor ianlancetaylor commented Oct 21, 2014

Comment 1:

Labels changed: added repo-main, release-none.

@griesemer
Copy link
Contributor

@griesemer griesemer commented Oct 21, 2014

Comment 2:

Status changed to Thinking.

@cpmech
Copy link

@cpmech cpmech commented Feb 6, 2015

Interesting. I reckon formatting by aligning 'equals' is out of scope as well... Example:
myvariable = something
myvar = something else
instead of:
myvariables = something
myvar = something else
that's be awesome

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

Successfully merging a pull request may close this issue.

None yet
5 participants
You can’t perform that action at this time.