cmd/gofmt: inconsistent whitespace after map value type #53001
Labels
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
Consider the following:
On one line it's
go fmt
'd asfunc() bool{
and asfunc() bool {
on the other line. Note the space betweenbool
and{
.In the previous case, this is the syntax for a map literal, while the latter is a function declaration.
Perhaps we should always output a space after a type expression (e.g.,
func() bool
orchan bool
) that contains a space?The text was updated successfully, but these errors were encountered: