Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
cmd/gofmt: remove key literal with triple nested map #29450
What version of Go are you using (
There are many such code simplifications that we could do (or not do). It's not clear that they should be in gofmt. A separate tool might be the better solution.
Also, in general, getting this to work right for all cases will require type information which is not available in gofmt.