Skip to content

Commit

Permalink
cmd/igop => yaigop
Browse files Browse the repository at this point in the history
  • Loading branch information
xushiwei committed Jun 3, 2022
1 parent 293ec69 commit ce12de3
Show file tree
Hide file tree
Showing 16 changed files with 20 additions and 20 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import (
"runtime"

"github.com/goplus/gop"
"github.com/goplus/igop/cmd/igop/internal/base"
"github.com/goplus/yaigop/cmd/yaigop/internal/base"
"github.com/qiniu/x/log"
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,17 @@ package run

import (
"github.com/cosmos72/gomacro/fast"
"github.com/goplus/igop"
"github.com/goplus/yaigop"
"github.com/qiniu/x/log"

_ "github.com/goplus/igop/cmd/igop/internal/lib"
_ "github.com/goplus/yaigop/cmd/yaigop/internal/lib"
)

// -----------------------------------------------------------------------------

func runDir(srcDir string, asm bool) {
it := fast.New()
app, err := igop.CompileDir(it, srcDir)
app, err := yaigop.CompileDir(it, srcDir)
if err != nil {
log.Fatalln(err)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import (
"os"

"github.com/goplus/igo/interp"
"github.com/goplus/igop"
"github.com/goplus/yaigop"
"github.com/qiniu/x/log"

_ "github.com/goplus/igo/lib"
Expand All @@ -29,7 +29,7 @@ import (
// -----------------------------------------------------------------------------

func runDir(srcDir string, asm bool) {
app, err := igop.CompileDir(srcDir)
app, err := yaigop.CompileDir(srcDir)
if err != nil {
log.Fatalln(err)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ package run

import (
"github.com/goplus/gossa"
"github.com/goplus/igop"
"github.com/goplus/yaigop"
"github.com/qiniu/x/log"

_ "github.com/goplus/gossa/pkg"
Expand All @@ -27,7 +27,7 @@ import (
// -----------------------------------------------------------------------------

func runDir(srcDir string, asm bool) {
code, err := igop.CompileDir(srcDir)
code, err := yaigop.CompileDir(srcDir)
if err != nil {
log.Fatalln(err)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
package run

import (
"github.com/goplus/igop"
"github.com/goplus/igop/cmd/igop/internal/lib"
"github.com/goplus/yaigop"
"github.com/goplus/yaigop/cmd/yaigop/internal/lib"
"github.com/qiniu/x/log"
"github.com/traefik/yaegi/interp"
"github.com/traefik/yaegi/stdlib"
Expand All @@ -30,7 +30,7 @@ func runDir(srcDir string, asm bool) {
it := interp.New(interp.Options{})
it.Use(stdlib.Symbols)
it.Use(lib.Symbols)
app, err := igop.CompileDir(it, srcDir)
app, err := yaigop.CompileDir(it, srcDir)
if err != nil {
log.Fatalln(err)
}
Expand Down
6 changes: 3 additions & 3 deletions cmd/igop/main.go → cmd/yaigop/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ package main
import (
"os"

"github.com/goplus/igop/cmd/igop/internal/base"
"github.com/goplus/igop/cmd/igop/internal/run"
"github.com/goplus/yaigop/cmd/yaigop/internal/base"
"github.com/goplus/yaigop/cmd/yaigop/internal/run"
)

func main() {
base.Main(run.Cmd, "igop", os.Args[1:])
base.Main(run.Cmd, "yaigop", os.Args[1:])
}

// -----------------------------------------------------------------------------
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/goplus/igop
module github.com/goplus/yaigop

go 1.16

Expand Down
2 changes: 1 addition & 1 deletion igop_gomacro.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
limitations under the License.
*/

package igop
package yaigop

import (
"errors"
Expand Down
2 changes: 1 addition & 1 deletion igop_igo.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
limitations under the License.
*/

package igop
package yaigop

import (
"errors"
Expand Down
2 changes: 1 addition & 1 deletion igop_ssa.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
limitations under the License.
*/

package igop
package yaigop

import (
"bytes"
Expand Down
2 changes: 1 addition & 1 deletion igop_yaegi.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
limitations under the License.
*/

package igop
package yaigop

import (
"bytes"
Expand Down
2 changes: 1 addition & 1 deletion igop_yaegi_ast.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//go:build yaegiast
// +build yaegiast

package igop
package yaigop

import (
"errors"
Expand Down

0 comments on commit ce12de3

Please sign in to comment.