2 ms·
Would this work? c := colly.NewCollector() // this functions create a goroutine and returns a channel ch := c.HTML("a") e := <- ch link := e.Attr(
by JoeAcchino 9y ago
Would this work?
c := colly.NewCollector()
// this functions create a goroutine and returns a channel
ch := c.HTML("a")
e := <- ch
link := e.Attr("href")
// ...
I'm a bit rusty (ah!) with go, so bear with me if the above contains errors.