Re:Colly: Fast and Elegant Scraping Framework for Golang
by weberc2 on Thursday October 05, 2017 @12:02PM
(#15410231)
Channels require concurrency; you have to spin up another goroutine and take care not to let or deadlock. Channels are for communication between goroutines, not for general abstraction.
[ Parent
| on HN ]
Re:Colly: Fast and Elegant Scraping Framework for Golang
by hnlmorg on Thursday October 05, 2017 @12:18PM
(#15410356)
I agree. Callbacks makes sense in this context and is the idiomatic way to write the code given that's the approach used in the standard library. eg: