File tree 1 file changed +20
-1
lines changed
1 file changed +20
-1
lines changed Original file line number Diff line number Diff line change 1
1
# go-querystring-parser
2
- A golang querystring parser
2
+ A golang Elasticsearch Querystring parser
3
3
4
4
## Usage
5
5
@@ -21,6 +21,25 @@ if err != nil {
21
21
// do something with ast
22
22
```
23
23
24
+ The AST parsed from above querystring:
25
+
26
+ ```
27
+ // print via github.com/davecgh/go-spew.Dump
28
+ (*querystring.AndCondition)(0xc00000c200)({
29
+ Left: (*querystring.MatchCondition)(0xc00000c1e0)({
30
+ Field: (string) (len=7) "message",
31
+ Value: (string) (len=10) "test value"
32
+ }),
33
+ Right: (*querystring.TimeRangeCondition)(0xc000076750)({
34
+ Field: (string) (len=8) "datetime",
35
+ Start: (*string)(0xc0000545b0)((len=19) "2020-01-01T00:00:00"),
36
+ End: (*string)(0xc0000545c0)((len=19) "2020-12-31T00:00:00"),
37
+ IncludeStart: (bool) true,
38
+ IncludeEnd: (bool) true
39
+ })
40
+ })
41
+ ```
42
+
24
43
## For Developers
25
44
26
45
After edit querystring.y, gen code via run:
You can’t perform that action at this time.
0 commit comments