From 12b608b625b005106760d604fa29c3ca1c66c61d Mon Sep 17 00:00:00 2001 From: Fernandez Ludovic Date: Wed, 20 Mar 2019 10:11:39 +0100 Subject: [PATCH] chore: rename to yaegi. --- .github/ISSUE_TEMPLATE/Bug_report.md | 2 +- .gitignore | 2 +- README.md | 2 +- _test/gen_example.sh | 4 ++-- _test/interp.gi | 2 +- _test/interp2.gi | 4 ++-- example/closure/closure_test.go | 4 ++-- example/getfunc/getfunc_test.go | 4 ++-- example/inception/inception.go | 4 ++-- example/pkg/pkg_test.go | 4 ++-- interp/interp.go | 2 +- interp/interp_consistent_test.go | 4 ++-- interp/interp_eval_test.go | 4 ++-- interp/interp_export_test.go | 2 +- interp/interp_test.go | 4 ++-- dyngo.go => yaegi.go | 14 +++++++------- 16 files changed, 31 insertions(+), 31 deletions(-) rename dyngo.go => yaegi.go (76%) diff --git a/.github/ISSUE_TEMPLATE/Bug_report.md b/.github/ISSUE_TEMPLATE/Bug_report.md index 3230256c..4a795e10 100644 --- a/.github/ISSUE_TEMPLATE/Bug_report.md +++ b/.github/ISSUE_TEMPLATE/Bug_report.md @@ -22,6 +22,6 @@ $ go run ./sample.go Got: ```console -$ dyngo ./sample.go +$ yaegi ./sample.go // ouput ``` diff --git a/.gitignore b/.gitignore index b72b4557..2ae1f4f5 100644 --- a/.gitignore +++ b/.gitignore @@ -2,7 +2,7 @@ .*.swp *.dot .idea/ -dyngo +yaegi cmd/goexports/goexports example/inception/inception _test/tmp/ diff --git a/README.md b/README.md index ef7270b7..42d5065b 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Go interpreter -[![Build Status](https://semaphoreci.com/api/v1/projects/9ae7b3d7-85f8-492f-aa43-62039d5342b7/2465344/badge.svg)](https://semaphoreci.com/containous/dyngo) +[![Build Status](https://semaphoreci.com/api/v1/projects/8a9d3e41-0a4f-408e-a477-3c9c7418314d/2583906/badge.svg)](https://semaphoreci.com/containous/yaegi) A Go interpreter in go diff --git a/_test/gen_example.sh b/_test/gen_example.sh index 0a9eb5c1..eee22212 100755 --- a/_test/gen_example.sh +++ b/_test/gen_example.sh @@ -7,8 +7,8 @@ echo echo 'package interp_test' echo echo 'import (' -echo ' "github.com/containous/dyngo/interp"' -echo ' "github.com/containous/dyngo/stdlib"' +echo ' "github.com/containous/yaegi/interp"' +echo ' "github.com/containous/yaegi/stdlib"' echo ')' echo for file in *.go diff --git a/_test/interp.gi b/_test/interp.gi index c4af9f17..0148e2fc 100644 --- a/_test/interp.gi +++ b/_test/interp.gi @@ -1,7 +1,7 @@ package main import ( - "github.com/containous/dyngo/interp" + "github.com/containous/yaegi/interp" ) func main() { diff --git a/_test/interp2.gi b/_test/interp2.gi index 188f3db1..53075f3c 100644 --- a/_test/interp2.gi +++ b/_test/interp2.gi @@ -1,13 +1,13 @@ package main import ( - "github.com/containous/dyngo/interp" + "github.com/containous/yaegi/interp" ) func main() { i := interp.New(interp.Opt{}) i.Use(interp.ExportValue, interp.ExportType) - i.Eval(`import "github.com/containous/dyngo/interp"`) + i.Eval(`import "github.com/containous/yaegi/interp"`) i.Eval(`i := interp.New(interp.Opt{})`) i.Eval(`i.Eval("println(42)")`) } diff --git a/example/closure/closure_test.go b/example/closure/closure_test.go index d2406137..bbe09a80 100644 --- a/example/closure/closure_test.go +++ b/example/closure/closure_test.go @@ -3,8 +3,8 @@ package clos1 import ( "testing" - "github.com/containous/dyngo/interp" - "github.com/containous/dyngo/stdlib" + "github.com/containous/yaegi/interp" + "github.com/containous/yaegi/stdlib" ) func TestFunctionCall(t *testing.T) { diff --git a/example/getfunc/getfunc_test.go b/example/getfunc/getfunc_test.go index 6c1fe997..114d6765 100644 --- a/example/getfunc/getfunc_test.go +++ b/example/getfunc/getfunc_test.go @@ -4,8 +4,8 @@ import ( "fmt" "testing" - "github.com/containous/dyngo/interp" - "github.com/containous/dyngo/stdlib" + "github.com/containous/yaegi/interp" + "github.com/containous/yaegi/stdlib" ) func TestGetFunc(t *testing.T) { diff --git a/example/inception/inception.go b/example/inception/inception.go index bb6a04a3..74235365 100644 --- a/example/inception/inception.go +++ b/example/inception/inception.go @@ -3,13 +3,13 @@ package main import ( "log" - "github.com/containous/dyngo/interp" + "github.com/containous/yaegi/interp" ) func main() { i := interp.New(interp.Opt{}) i.Use(interp.ExportValue) - if _, err := i.Eval(`import "github.com/containous/dyngo/interp"`); err != nil { + if _, err := i.Eval(`import "github.com/containous/yaegi/interp"`); err != nil { log.Fatal(err) } if _, err := i.Eval(`i := interp.New(interp.Opt{})`); err != nil { diff --git a/example/pkg/pkg_test.go b/example/pkg/pkg_test.go index af83d33c..5e86578e 100644 --- a/example/pkg/pkg_test.go +++ b/example/pkg/pkg_test.go @@ -4,8 +4,8 @@ import ( "path/filepath" "testing" - "github.com/containous/dyngo/interp" - "github.com/containous/dyngo/stdlib" + "github.com/containous/yaegi/interp" + "github.com/containous/yaegi/stdlib" ) func TestPackages(t *testing.T) { diff --git a/interp/interp.go b/interp/interp.go index 38e99495..5926fc4c 100644 --- a/interp/interp.go +++ b/interp/interp.go @@ -79,7 +79,7 @@ type Interpreter struct { var ExportValue = LibValueMap{} func init() { - me := "github.com/containous/dyngo/interp" + me := "github.com/containous/yaegi/interp" ExportValue[me] = map[string]reflect.Value{ "New": reflect.ValueOf(New), "Interpreter": reflect.ValueOf((*Interpreter)(nil)), diff --git a/interp/interp_consistent_test.go b/interp/interp_consistent_test.go index b0c7c5d8..cc67dcc5 100644 --- a/interp/interp_consistent_test.go +++ b/interp/interp_consistent_test.go @@ -8,8 +8,8 @@ import ( "strings" "testing" - "github.com/containous/dyngo/interp" - "github.com/containous/dyngo/stdlib" + "github.com/containous/yaegi/interp" + "github.com/containous/yaegi/stdlib" ) func TestInterpConsistencyBuild(t *testing.T) { diff --git a/interp/interp_eval_test.go b/interp/interp_eval_test.go index 24c672ef..6e5807cb 100644 --- a/interp/interp_eval_test.go +++ b/interp/interp_eval_test.go @@ -8,8 +8,8 @@ import ( "testing" "time" - "github.com/containous/dyngo/interp" - "github.com/containous/dyngo/stdlib" + "github.com/containous/yaegi/interp" + "github.com/containous/yaegi/stdlib" ) func init() { log.SetFlags(log.Lshortfile) } diff --git a/interp/interp_export_test.go b/interp/interp_export_test.go index 6b8dab5a..54fb3ea2 100644 --- a/interp/interp_export_test.go +++ b/interp/interp_export_test.go @@ -4,7 +4,7 @@ import ( "reflect" "testing" - "github.com/containous/dyngo/interp" + "github.com/containous/yaegi/interp" ) type Helloer interface { diff --git a/interp/interp_test.go b/interp/interp_test.go index f1826407..f7f8b839 100644 --- a/interp/interp_test.go +++ b/interp/interp_test.go @@ -3,8 +3,8 @@ package interp_test import ( - "github.com/containous/dyngo/interp" - "github.com/containous/dyngo/stdlib" + "github.com/containous/yaegi/interp" + "github.com/containous/yaegi/stdlib" ) func Example_a1() { diff --git a/dyngo.go b/yaegi.go similarity index 76% rename from dyngo.go rename to yaegi.go index 8a12e6b2..9a9a5138 100644 --- a/dyngo.go +++ b/yaegi.go @@ -1,9 +1,9 @@ package main -//go:generate go generate github.com/containous/dyngo/interp -//go:generate go generate github.com/containous/dyngo/cmd/goexports -//go:generate go generate github.com/containous/dyngo/stdlib -//go:generate go generate github.com/containous/dyngo/stdlib/syscall +//go:generate go generate github.com/containous/yaegi/interp +//go:generate go generate github.com/containous/yaegi/cmd/goexports +//go:generate go generate github.com/containous/yaegi/stdlib +//go:generate go generate github.com/containous/yaegi/stdlib/syscall import ( "flag" @@ -13,9 +13,9 @@ import ( "os" "strings" - "github.com/containous/dyngo/interp" - "github.com/containous/dyngo/stdlib" - "github.com/containous/dyngo/stdlib/syscall" + "github.com/containous/yaegi/interp" + "github.com/containous/yaegi/stdlib" + "github.com/containous/yaegi/stdlib/syscall" ) func main() {