Closed onlywsx closed 5 years ago
func newXMLElement(el colly.XMLElement, ctx Context) *XMLElement { return &XMLElement{ Name: el.Name, Text: el.Text, Request: newRequest(el.Request, ctx), Response: newResponse(el.Response, ctx), DOM: el.DOM, el: el, } }
func (x *XMLElement) Attr(k string) string { return x.el.Attr(k) }
thanks, fixed.
func newXMLElement(el colly.XMLElement, ctx Context) *XMLElement { return &XMLElement{ Name: el.Name, Text: el.Text, Request: newRequest(el.Request, ctx), Response: newResponse(el.Response, ctx), DOM: el.DOM, el: el, } }
func (x *XMLElement) Attr(k string) string { return x.el.Attr(k) }