来自GoQuery:
type Document struct {
*Selection
Url *url.URL
// contains filtered or unexported fields
}
我想从变量中获取*Selection
指针:*Document
doc, e := goquery.NewDocument("http://www.gemalto.com/companyinfo/careers/")
var sel *goquery.Selection = doc // error!
sel = doc.(*goquery.Selection) // also error!