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

    c.OnHTML("a[href]", func(e *colly.HTMLElement) {
  e.Request.Visit(e.Attr("href"))
 })
Sometimes I wish Go idioms included an iterator abstraction, it's easier to understand and less hideous than that functional callback style.


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

Search: