News for hackers. Stuff that matters.
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.
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:

https://golang.org/pkg/path/filepath/#Walk

https://golang.org/pkg/net/http/#HandleFunc

Re:Colly: Fast and Elegant Scraping Framework for Golang by weberc2 on Thursday October 05, 2017 @04:46PM (#15412461)
*Take care not to leak or deadlock