The XPath function list.
(q query)
| 27 | // The XPath function list. |
| 28 | |
| 29 | func predicate(q query) func(NodeNavigator) bool { |
| 30 | type Predicater interface { |
| 31 | Test(NodeNavigator) bool |
| 32 | } |
| 33 | if p, ok := q.(Predicater); ok { |
| 34 | return p.Test |
| 35 | } |
| 36 | return func(NodeNavigator) bool { return true } |
| 37 | } |
| 38 | |
| 39 | // positionFunc is a XPath Node Set functions position(). |
| 40 | func positionFunc() func(query, iterator) interface{} { |
no outgoing calls
no test coverage detected
searching dependent graphs…