Goquery选择meta [property = og:image]?

Goquery Syntax-wise, it is as close as possible to jQuery, with the same function names when possible, and that warm and fuzzy chainable interface.

doc.Find("meta[property='og:image']").Each(func(i int, s *goquery.Selection) {
    fmt.Fprintln("og data=", s)
})

Apparently not close enough to that j-thing.

How can you get the og data in a webpage from goquery?

Just figured it out - hope this helps someone else out there

doc.Find("meta").Each(func(i int, s *goquery.Selection) {
    op, _ := s.Attr("property")
    con, _ := s.Attr("content")
    if op == "og:image" {
        fmt.Fprintln("og data=", con)
    }

})