Skip to content

Commit c89be6a

Browse files
committed
Use expr-lang/expr
1 parent 5455cf8 commit c89be6a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

69 files changed

+177
-176
lines changed

.github/scripts/coverage.mjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const exclude = [
1111
cd(path.resolve(__dirname, '..', '..'))
1212

1313
await spinner('Running tests', async () => {
14-
await $`go test -coverprofile=coverage.out -coverpkg=github.com/antonmedv/expr/... ./...`
14+
await $`go test -coverprofile=coverage.out -coverpkg=github.com/expr-lang/expr/... ./...`
1515
const coverage = fs.readFileSync('coverage.out').toString()
1616
.split('\n')
1717
.filter(line => {

README.md

+8-8
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# Expr
2-
[![test](https://github.com/antonmedv/expr/actions/workflows/test.yml/badge.svg)](https://github.com/antonmedv/expr/actions/workflows/test.yml)
3-
[![Go Report Card](https://goreportcard.com/badge/github.com/antonmedv/expr)](https://goreportcard.com/report/github.com/antonmedv/expr)
2+
[![test](https://github.com/expr-lang/expr/actions/workflows/test.yml/badge.svg)](https://github.com/expr-lang/expr/actions/workflows/test.yml)
3+
[![Go Report Card](https://goreportcard.com/badge/github.com/expr-lang/expr)](https://goreportcard.com/report/github.com/expr-lang/expr)
44
[![Fuzzing Status](https://oss-fuzz-build-logs.storage.googleapis.com/badges/expr.svg)](https://bugs.chromium.org/p/oss-fuzz/issues/list?sort=-opened&can=1&q=proj:expr)
5-
[![GoDoc](https://godoc.org/github.com/antonmedv/expr?status.svg)](https://godoc.org/github.com/antonmedv/expr)
5+
[![GoDoc](https://godoc.org/github.com/expr-lang/expr?status.svg)](https://godoc.org/github.com/expr-lang/expr)
66

77
**Expr** is a Go-centric expression language designed to deliver dynamic configurations with unparalleled accuracy, safety, and speed.
88

@@ -53,7 +53,7 @@ Here are its standout features:
5353
## Install
5454

5555
```
56-
go get github.com/antonmedv/expr
56+
go get github.com/expr-lang/expr
5757
```
5858

5959
## Documentation
@@ -80,7 +80,7 @@ package main
8080

8181
import (
8282
"fmt"
83-
"github.com/antonmedv/expr"
83+
"github.com/expr-lang/expr"
8484
)
8585

8686
func main() {
@@ -113,7 +113,7 @@ package main
113113

114114
import (
115115
"fmt"
116-
"github.com/antonmedv/expr"
116+
"github.com/expr-lang/expr"
117117
)
118118

119119
type Tweet struct {
@@ -165,8 +165,8 @@ func main() {
165165
* [Visually.io](https://visually.io) employs Expr as a business rule engine for its personalization targeting algorithm.
166166
* [Akvorado](https://github.com/akvorado/akvorado) utilizes Expr to classify exporters and interfaces in network flows.
167167

168-
[Add your company too](https://github.com/antonmedv/expr/edit/master/README.md)
168+
[Add your company too](https://github.com/expr-lang/expr/edit/master/README.md)
169169

170170
## License
171171

172-
[MIT](https://github.com/antonmedv/expr/blob/master/LICENSE)
172+
[MIT](https://github.com/expr-lang/expr/blob/master/LICENSE)

ast/node.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"reflect"
55
"regexp"
66

7-
"github.com/antonmedv/expr/file"
7+
"github.com/expr-lang/expr/file"
88
)
99

1010
// Node represents items of abstract syntax tree.

ast/print.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import (
55
"fmt"
66
"strings"
77

8-
"github.com/antonmedv/expr/parser/operator"
9-
"github.com/antonmedv/expr/parser/utils"
8+
"github.com/expr-lang/expr/parser/operator"
9+
"github.com/expr-lang/expr/parser/utils"
1010
)
1111

1212
func (n *NilNode) String() string {

ast/print_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ import (
66
"github.com/stretchr/testify/assert"
77
"github.com/stretchr/testify/require"
88

9-
"github.com/antonmedv/expr/ast"
10-
"github.com/antonmedv/expr/parser"
9+
"github.com/expr-lang/expr/ast"
10+
"github.com/expr-lang/expr/parser"
1111
)
1212

1313
func TestPrint(t *testing.T) {

ast/visitor_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package ast_test
33
import (
44
"testing"
55

6-
"github.com/antonmedv/expr/ast"
6+
"github.com/expr-lang/expr/ast"
77
"github.com/stretchr/testify/assert"
88
)
99

bench_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ package expr_test
33
import (
44
"testing"
55

6-
"github.com/antonmedv/expr"
7-
"github.com/antonmedv/expr/vm"
6+
"github.com/expr-lang/expr"
7+
"github.com/expr-lang/expr/vm"
88
"github.com/stretchr/testify/require"
99
)
1010

builtin/builtin.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ import (
99
"strings"
1010
"time"
1111

12-
"github.com/antonmedv/expr/ast"
13-
"github.com/antonmedv/expr/vm/runtime"
12+
"github.com/expr-lang/expr/ast"
13+
"github.com/expr-lang/expr/vm/runtime"
1414
)
1515

1616
var (

builtin/builtin_test.go

+7-7
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ import (
1010
"github.com/stretchr/testify/assert"
1111
"github.com/stretchr/testify/require"
1212

13-
"github.com/antonmedv/expr"
14-
"github.com/antonmedv/expr/builtin"
15-
"github.com/antonmedv/expr/checker"
16-
"github.com/antonmedv/expr/conf"
17-
"github.com/antonmedv/expr/parser"
18-
"github.com/antonmedv/expr/test/mock"
13+
"github.com/expr-lang/expr"
14+
"github.com/expr-lang/expr/builtin"
15+
"github.com/expr-lang/expr/checker"
16+
"github.com/expr-lang/expr/conf"
17+
"github.com/expr-lang/expr/parser"
18+
"github.com/expr-lang/expr/test/mock"
1919
)
2020

2121
func TestBuiltin(t *testing.T) {
@@ -388,7 +388,7 @@ func TestBuiltin_type(t *testing.T) {
388388
{func() {}, "func"},
389389
{time.Now(), "time.Time"},
390390
{time.Second, "time.Duration"},
391-
{Foo{}, "github.com/antonmedv/expr/builtin_test.Foo"},
391+
{Foo{}, "github.com/expr-lang/expr/builtin_test.Foo"},
392392
{struct{}{}, "struct"},
393393
{a, "int"},
394394
}

builtin/func.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66
"reflect"
77
"strconv"
88

9-
"github.com/antonmedv/expr/vm/runtime"
9+
"github.com/expr-lang/expr/vm/runtime"
1010
)
1111

1212
func Len(x any) any {

checker/checker.go

+6-6
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@ import (
55
"reflect"
66
"regexp"
77

8-
"github.com/antonmedv/expr/ast"
9-
"github.com/antonmedv/expr/builtin"
10-
"github.com/antonmedv/expr/conf"
11-
"github.com/antonmedv/expr/file"
12-
"github.com/antonmedv/expr/parser"
13-
"github.com/antonmedv/expr/vm"
8+
"github.com/expr-lang/expr/ast"
9+
"github.com/expr-lang/expr/builtin"
10+
"github.com/expr-lang/expr/conf"
11+
"github.com/expr-lang/expr/file"
12+
"github.com/expr-lang/expr/parser"
13+
"github.com/expr-lang/expr/vm"
1414
)
1515

1616
func Check(tree *parser.Tree, config *conf.Config) (t reflect.Type, err error) {

checker/checker_test.go

+6-6
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ import (
1010
"github.com/stretchr/testify/assert"
1111
"github.com/stretchr/testify/require"
1212

13-
"github.com/antonmedv/expr"
14-
"github.com/antonmedv/expr/ast"
15-
"github.com/antonmedv/expr/checker"
16-
"github.com/antonmedv/expr/conf"
17-
"github.com/antonmedv/expr/parser"
18-
"github.com/antonmedv/expr/test/mock"
13+
"github.com/expr-lang/expr"
14+
"github.com/expr-lang/expr/ast"
15+
"github.com/expr-lang/expr/checker"
16+
"github.com/expr-lang/expr/conf"
17+
"github.com/expr-lang/expr/parser"
18+
"github.com/expr-lang/expr/test/mock"
1919
)
2020

2121
func TestCheck(t *testing.T) {

checker/types.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"reflect"
55
"time"
66

7-
"github.com/antonmedv/expr/conf"
7+
"github.com/expr-lang/expr/conf"
88
)
99

1010
var (

compiler/compiler.go

+7-7
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ import (
44
"fmt"
55
"reflect"
66

7-
"github.com/antonmedv/expr/ast"
8-
"github.com/antonmedv/expr/builtin"
9-
"github.com/antonmedv/expr/conf"
10-
"github.com/antonmedv/expr/file"
11-
"github.com/antonmedv/expr/parser"
12-
. "github.com/antonmedv/expr/vm"
13-
"github.com/antonmedv/expr/vm/runtime"
7+
"github.com/expr-lang/expr/ast"
8+
"github.com/expr-lang/expr/builtin"
9+
"github.com/expr-lang/expr/conf"
10+
"github.com/expr-lang/expr/file"
11+
"github.com/expr-lang/expr/parser"
12+
. "github.com/expr-lang/expr/vm"
13+
"github.com/expr-lang/expr/vm/runtime"
1414
)
1515

1616
const (

compiler/compiler_test.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ import (
44
"math"
55
"testing"
66

7-
"github.com/antonmedv/expr"
8-
"github.com/antonmedv/expr/test/playground"
9-
"github.com/antonmedv/expr/vm"
10-
"github.com/antonmedv/expr/vm/runtime"
7+
"github.com/expr-lang/expr"
8+
"github.com/expr-lang/expr/test/playground"
9+
"github.com/expr-lang/expr/vm"
10+
"github.com/expr-lang/expr/vm/runtime"
1111
"github.com/stretchr/testify/assert"
1212
"github.com/stretchr/testify/require"
1313
)

conf/config.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ import (
44
"fmt"
55
"reflect"
66

7-
"github.com/antonmedv/expr/ast"
8-
"github.com/antonmedv/expr/builtin"
9-
"github.com/antonmedv/expr/vm/runtime"
7+
"github.com/expr-lang/expr/ast"
8+
"github.com/expr-lang/expr/builtin"
9+
"github.com/expr-lang/expr/vm/runtime"
1010
)
1111

1212
type Config struct {

conf/operators.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package conf
33
import (
44
"reflect"
55

6-
"github.com/antonmedv/expr/ast"
6+
"github.com/expr-lang/expr/ast"
77
)
88

99
// OperatorsTable maps binary operators to corresponding list of functions.

debug/debugger.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77
"strings"
88
"time"
99

10-
. "github.com/antonmedv/expr/vm"
10+
. "github.com/expr-lang/expr/vm"
1111
"github.com/gdamore/tcell/v2"
1212
"github.com/rivo/tview"
1313
)

debug/go.mod

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
module github.com/antonmedv/expr/debug
1+
module github.com/expr-lang/expr/debug
22

33
go 1.18
44

55
require (
6-
github.com/antonmedv/expr v0.0.0
6+
github.com/expr-lang/expr v0.0.0
77
github.com/gdamore/tcell/v2 v2.6.0
88
github.com/rivo/tview v0.0.0-20230814110005-ccc2c8119703
99
)
@@ -18,4 +18,4 @@ require (
1818
golang.org/x/text v0.12.0 // indirect
1919
)
2020

21-
replace github.com/antonmedv/expr => ../
21+
replace github.com/expr-lang/expr => ../

docgen/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import (
1313
"encoding/json"
1414
"fmt"
1515

16-
"github.com/antonmedv/expr/docgen"
16+
"github.com/expr-lang/expr/docgen"
1717
)
1818

1919
func main() {
@@ -37,7 +37,7 @@ To generate markdown documentation:
3737
```go
3838
package main
3939

40-
import "github.com/antonmedv/expr/docgen"
40+
import "github.com/expr-lang/expr/docgen"
4141

4242
func main() {
4343
// TODO: Replace env with your own types.

docgen/docgen.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"regexp"
66
"strings"
77

8-
"github.com/antonmedv/expr/conf"
8+
"github.com/expr-lang/expr/conf"
99
)
1010

1111
// Kind can be any of array, map, struct, func, string, int, float, bool or any.

docgen/docgen_test.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"testing"
66
"time"
77

8-
. "github.com/antonmedv/expr/docgen"
8+
. "github.com/expr-lang/expr/docgen"
99
"github.com/stretchr/testify/assert"
1010
"github.com/stretchr/testify/require"
1111
)
@@ -127,7 +127,7 @@ func TestCreateDoc(t *testing.T) {
127127
},
128128
},
129129
},
130-
PkgPath: "github.com/antonmedv/expr/docgen_test",
130+
PkgPath: "github.com/expr-lang/expr/docgen_test",
131131
}
132132

133133
assert.EqualValues(t, expected, doc)
@@ -194,7 +194,7 @@ func TestCreateDoc_Ambiguous(t *testing.T) {
194194
},
195195
},
196196
},
197-
PkgPath: "github.com/antonmedv/expr/docgen_test",
197+
PkgPath: "github.com/expr-lang/expr/docgen_test",
198198
}
199199

200200
assert.EqualValues(t, expected, doc)

docs/Configuration.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ during the compile step.
7373
program, err := expr.Compile(`fib(42)`, expr.ConstExpr("fib"))
7474
```
7575

76-
[ConstExpr Example](https://pkg.go.dev/github.com/antonmedv/expr?tab=doc#ConstExpr)
76+
[ConstExpr Example](https://pkg.go.dev/github.com/expr-lang/expr?tab=doc#ConstExpr)
7777

7878
## Env()
7979

docs/Operator-Overloading.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ To use `-` operator:
1212
Now() - CreatedAt
1313
```
1414

15-
To overload the operator use [Operator](https://pkg.go.dev/github.com/antonmedv/expr?tab=doc#Operator) option:
15+
To overload the operator use [Operator](https://pkg.go.dev/github.com/expr-lang/expr?tab=doc#Operator) option:
1616

1717
```go
1818
func main() {

docs/Tips.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ package main
1010

1111
import (
1212
"fmt"
13-
"github.com/antonmedv/expr"
14-
"github.com/antonmedv/expr/vm"
13+
"github.com/expr-lang/expr"
14+
"github.com/expr-lang/expr/vm"
1515
)
1616

1717
func main() {

0 commit comments

Comments
 (0)