Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/santhosh-tekuri/xpathparser
XPath 1.0 Parser in Go
https://github.com/santhosh-tekuri/xpathparser
go golang parse parser xpath
Last synced: 3 months ago
JSON representation
XPath 1.0 Parser in Go
- Host: GitHub
- URL: https://github.com/santhosh-tekuri/xpathparser
- Owner: santhosh-tekuri
- License: bsd-3-clause
- Created: 2017-05-19T09:39:19.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-11-04T09:43:12.000Z (about 6 years ago)
- Last Synced: 2024-11-01T15:44:04.619Z (3 months ago)
- Topics: go, golang, parse, parser, xpath
- Language: Go
- Size: 30.3 KB
- Stars: 11
- Watchers: 6
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-golang-repositories - xpathparser
README
# xpathparser
[![License](https://img.shields.io/badge/License-BSD%203--Clause-blue.svg)](https://opensource.org/licenses/BSD-3-Clause)
[![GoDoc](https://godoc.org/github.com/santhosh-tekuri/xpathparser?status.svg)](https://godoc.org/github.com/santhosh-tekuri/xpathparser)
[![Go Report Card](https://goreportcard.com/badge/github.com/santhosh-tekuri/xpathparser)](https://goreportcard.com/report/github.com/santhosh-tekuri/xpathparser)
[![Build Status](https://travis-ci.org/santhosh-tekuri/xpathparser.svg?branch=master)](https://travis-ci.org/santhosh-tekuri/xpathparser)
[![codecov.io](https://codecov.io/github/santhosh-tekuri/xpathparser/coverage.svg?branch=master)](https://codecov.io/github/santhosh-tekuri/xpathparser?branch=master)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:
```go
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