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.
cmd/gofmt: breaks channel syntax #10040
In Go 1.4.1,
I'm using Ubuntu amd64. It is reproducible on my machine and in the Playground as follows:
This is working as intended.
"chan <-chan int" is parsed as "chan<- (chan int)", so if you want "chan (<-chan int)",
And I don't understand how your example http://play.golang.org/p/L9xzobGwob