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
GitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
go/parser: bad gofmt error message on extra comma in struct type #12437
On some bad code, gofmt gives a confusing error while the compiler gives a nice one.
Online demo at http://play.golang.org/p/htmZpN6HcY (click "format"), also inlined here to keep the bug self-contained.
The issue is the comma.