You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It makes no sense to add IsNode, HasAttr and HasValue to node.go. Node already have InnerText() and SelectAttr() to help finish these logical operation.
Basically, all functions defined in
xmlquery/node_test.go
Lines 11 to 69 in e73954f
are necessary for me for my node navigation & checking, and I'd like to move them into node and expose them,
while changing (in
node.go
alone)testNode
tofunc IsNode(n *Node, expected string) bool
testAttr
tofunc HasAttr(n *Node, expected string) bool
andtestValue
tofunc HasValue(val, expected interface{}) bool
OK?
The text was updated successfully, but these errors were encountered: