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

gopherbot opened this issue Nov 24, 2014 · 2 comments


Copy link


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

  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.
Copy link

Comment 1:

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

Copy link

Comment 2:

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

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.
None yet

No branches or pull requests

3 participants