1
- [ ![ Go Report Card] ( https://goreportcard.com/badge/github.com/go-toolsmith/strparse )] ( https://goreportcard.com/report/github.com/go-toolsmith/strparse )
2
- [ ![ GoDoc] ( https://godoc.org/github.com/go-toolsmith/strparse?status.svg )] ( https://godoc.org/github.com/go-toolsmith/strparse )
3
- [ ![ Build Status] ( https://travis-ci.org/go-toolsmith/strparse.svg?branch=master )] ( https://travis-ci.org/go-toolsmith/strparse )
4
-
5
-
6
1
# strparse
7
2
8
- Package strparse provides convenience wrappers around ` go/parser ` for simple
3
+ [ ![ build-img]] [ build-url ]
4
+ [ ![ pkg-img]] [ pkg-url ]
5
+ [ ![ reportcard-img]] [ reportcard-url ]
6
+ [ ![ version-img]] [ version-url ]
7
+
8
+ Package ` strparse ` provides convenience wrappers around ` go/parser ` for simple
9
9
expression, statement and declaretion parsing from string.
10
10
11
11
## Installation
12
12
13
+ Go version 1.16+
14
+
13
15
``` bash
14
16
go get github.com/go-toolsmith/strparse
15
17
```
@@ -20,8 +22,8 @@ go get github.com/go-toolsmith/strparse
20
22
package main
21
23
22
24
import (
23
- " go-toolsmith/astequal"
24
- " go-toolsmith/strparse"
25
+ " github.com/ go-toolsmith/astequal"
26
+ " github.com/ go-toolsmith/strparse"
25
27
)
26
28
27
29
func main () {
@@ -30,5 +32,17 @@ func main() {
30
32
y := strparse.Expr (` 1+f( v[0].X ) ` )
31
33
fmt.Println (astequal.Expr (x, y)) // => true
32
34
}
33
-
34
35
```
36
+
37
+ ## License
38
+
39
+ [ MIT License] ( LICENSE ) .
40
+
41
+ [ build-img ] : https://github.com/go-toolsmith/strparse/workflows/build/badge.svg
42
+ [ build-url ] : https://github.com/go-toolsmith/strparse/actions
43
+ [ pkg-img ] : https://pkg.go.dev/badge/go-toolsmith/strparse
44
+ [ pkg-url ] : https://pkg.go.dev/github.com/go-toolsmith/strparse
45
+ [ reportcard-img ] : https://goreportcard.com/badge/go-toolsmith/strparse
46
+ [ reportcard-url ] : https://goreportcard.com/report/go-toolsmith/strparse
47
+ [ version-img ] : https://img.shields.io/github/v/release/go-toolsmith/strparse
48
+ [ version-url ] : https://github.com/go-toolsmith/strparse/releases
0 commit comments