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

go/format: go fmt doesn't properly format map[string]int for variable key lengts #9155

Closed
gopherbot opened this issue Nov 24, 2014 · 2 comments

Comments

@gopherbot
Copy link

by erik@dubbelboer.com:

What does 'go version' print?

  go version go1.3.2 linux/amd64

What steps reproduce the problem?
If possible, include a link to a program on play.golang.org.

  1. http://play.golang.org/p/PfpjQr6LrC
  2. Press Format or run `go fmt` on the source.

What happened?

  The map is formatted quite weirdly and not nice at all.

What should have happened instead?

  The source should be formatted nicely.
@ianlancetaylor
Copy link
Contributor

Comment 1:

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

@griesemer
Copy link
Contributor

Comment 2:

This is working as intended. It's a variation of issue #7335. See that one for an
explanation.

Status changed to WorkingAsIntended.

@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
Development

No branches or pull requests

3 participants