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: odd formatting of struct literal #8215

Closed
davecheney opened this issue Jun 16, 2014 · 2 comments
Closed

cmd/gofmt: odd formatting of struct literal #8215

davecheney opened this issue Jun 16, 2014 · 2 comments
Assignees
Milestone

Comments

@davecheney
Copy link
Contributor

@davecheney davecheney commented Jun 16, 2014

What steps will reproduce the problem?

http://play.golang.org/p/G0VVIct5q2

What is the expected output? What do you see instead?

expected
line 13: tag: "user-dave"

got:
line 13: tag:       "user-dave"

Please use labels and text to provide additional information.
@ianlancetaylor
Copy link
Contributor

@ianlancetaylor ianlancetaylor commented Jun 16, 2014

Comment 1:

Labels changed: added repo-main, release-go1.4.

Owner changed to @griesemer.

@griesemer
Copy link
Contributor

@griesemer griesemer commented Jun 16, 2014

Comment 2:

Composite literal formatting tries to align columns of values. The only reason this is
sticking out is because all other field names have the same length. This is working as
intended.

Status changed to WorkingAsIntended.

@rsc rsc added this to the Go1.4 milestone Apr 14, 2015
@rsc rsc removed the release-go1.4 label Apr 14, 2015
@golang golang locked and limited conversation to collaborators Jun 25, 2016
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
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.