Using the html package, I needed a way to get the type of an element in a selection. goquery has an Is() method which returns a bool if the selection includes a selector passed in as a string.
This PR adds isSelector() as a method on structure, because is() seems to be reserved (or at least when I tried using is() I got "not an identifier" errors, which cleared up when I used any other name).
Using the
html
package, I needed a way to get the type of an element in aselection
.goquery
has anIs()
method which returns a bool if the selection includes a selector passed in as a string.This PR adds
isSelector()
as a method onstructure
, becauseis()
seems to be reserved (or at least when I tried usingis()
I got "not an identifier" errors, which cleared up when I used any other name).