Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

The net/http library is the caller in this case, so that would be consistent with the rule that callers should start goroutines.

Request handlers are a bit of a special case too, in that they are a framework for dispatching tasks to be worked on; what is main() for a command line program is the request handler for a webserver. It seems fair that there is some concurrency coordination happening at the top level.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: