从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!
慕运维8079593
相关分类