chore: rename to yaegi.
This commit is contained in:
2
.github/ISSUE_TEMPLATE/Bug_report.md
vendored
2
.github/ISSUE_TEMPLATE/Bug_report.md
vendored
@@ -22,6 +22,6 @@ $ go run ./sample.go
|
||||
|
||||
Got:
|
||||
```console
|
||||
$ dyngo ./sample.go
|
||||
$ yaegi ./sample.go
|
||||
// ouput
|
||||
```
|
||||
|
||||
2
.gitignore
vendored
2
.gitignore
vendored
@@ -2,7 +2,7 @@
|
||||
.*.swp
|
||||
*.dot
|
||||
.idea/
|
||||
dyngo
|
||||
yaegi
|
||||
cmd/goexports/goexports
|
||||
example/inception/inception
|
||||
_test/tmp/
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# Go interpreter
|
||||
|
||||
[](https://semaphoreci.com/containous/dyngo)
|
||||
[](https://semaphoreci.com/containous/yaegi)
|
||||
|
||||
A Go interpreter in go
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"github.com/containous/dyngo/interp"
|
||||
"github.com/containous/yaegi/interp"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
||||
@@ -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)")`)
|
||||
}
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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)),
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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) }
|
||||
|
||||
@@ -4,7 +4,7 @@ import (
|
||||
"reflect"
|
||||
"testing"
|
||||
|
||||
"github.com/containous/dyngo/interp"
|
||||
"github.com/containous/yaegi/interp"
|
||||
)
|
||||
|
||||
type Helloer interface {
|
||||
|
||||
@@ -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() {
|
||||
|
||||
@@ -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() {
|
||||
Reference in New Issue
Block a user