xpathparser
Package xpathparser provides lexer and parser for XPath 1.0.
This Package parses given XPath expression to expression model.
Example
An example of using this package:
expr := xpathparser.MustParse("(/a/b)[5]")
fmt.Println(expr)
This package does not evaluate xpath. For evaluating xpaths use https://github.com/santhosh-tekuri/xpath