antchfx / htmlquery

htmlquery is golang XPath package for HTML query.
https://github.com/antchfx/xpath
MIT License
738 stars 74 forks source link

Improve the documentation for `Query` #45

Closed ffigiel closed 3 years ago

ffigiel commented 3 years ago

I noticed that my InnerText call resulted in a panic because Query returned a nil. I updated the Query doc to mention that it may return a nil html.Node with no error, and improved the overall wording a little