amahi / spdy

A production-ready SPDY library for building clients and servers, in Go
Other
95 stars 21 forks source link

more idiomatic code and a logical fix #2

Closed 0xmichalis closed 10 years ago

0xmichalis commented 10 years ago

When using both sending and receiving channels as function parameters, it's idiomatic to have the destination channels first, followed by the source channels. Mentioned by Mark Summerfield in his Programming in Go book plus explained in golang-nuts (https://groups.google.com/forum/#!topic/golang-nuts/oNVBxO3xnkI).