Skip to content

Commit

Permalink
Merge pull request #108 from goplus/igop
Browse files Browse the repository at this point in the history
gossa => igop
  • Loading branch information
visualfc authored Jun 4, 2022
2 parents ba9039d + 9c76fc6 commit 0b93b05
Show file tree
Hide file tree
Showing 1,006 changed files with 6,712 additions and 6,715 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/go114.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,14 @@ jobs:
- name: Build
run: go build -v .

- name: Install gossa
run: go install -v ./cmd/gossa
- name: Install igop
run: go install -v ./cmd/igop

- name: Go Test
run: GOARCH=amd64 go test -race -v .

- name: Test $GOROOT/test
run: GOARCH=amd64 go run ./cmd/gossatest
run: GOARCH=amd64 go run ./cmd/igoptest

linux:
name: Test Go1.14 for Linux
Expand All @@ -57,14 +57,14 @@ jobs:
- name: Build
run: go build -v .

- name: Install gossa
run: go install -v ./cmd/gossa
- name: Install igop
run: go install -v ./cmd/igop

- name: Go Test amd64
run: GOARCH=amd64 go test -race -v .

- name: Test $GOROOT/test
run: GOARCH=amd64 go run ./cmd/gossatest
run: GOARCH=amd64 go run ./cmd/igoptest

windows:
name: Test Go1.14 for Windows
Expand All @@ -86,8 +86,8 @@ jobs:
- name: Build
run: go build -v .

- name: Install gossa
run: go install -v ./cmd/gossa
- name: Install igop
run: go install -v ./cmd/igop

- name: Go Test amd64
run: |
Expand All @@ -97,7 +97,7 @@ jobs:
- name: Test $GOROOT/test amd64
run: |
set GOARCH=amd64
go run ./cmd/gossatest
go run ./cmd/igoptest
- name: Go Test 386
run: |
Expand All @@ -107,4 +107,4 @@ jobs:
- name: Go $GOROOT/test 386
run: |
set GOARCH=386
go run ./cmd/gossatest
go run ./cmd/igoptest
20 changes: 10 additions & 10 deletions .github/workflows/go115.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,14 @@ jobs:
- name: Build
run: go build -v .

- name: Install gossa
run: go install -v ./cmd/gossa
- name: Install igop
run: go install -v ./cmd/igop

- name: Go Test
run: GOARCH=amd64 go test -race -v .

- name: Test $GOROOT/test
run: GOARCH=amd64 go run ./cmd/gossatest
run: GOARCH=amd64 go run ./cmd/igoptest

linux:
name: Test Go1.15 for Linux
Expand All @@ -57,14 +57,14 @@ jobs:
- name: Build
run: go build -v .

- name: Install gossa
run: go install -v ./cmd/gossa
- name: Install igop
run: go install -v ./cmd/igop

- name: Go Test amd64
run: GOARCH=amd64 go test -race -v .

- name: Test $GOROOT/test
run: GOARCH=amd64 go run ./cmd/gossatest
run: GOARCH=amd64 go run ./cmd/igoptest

windows:
name: Test Go1.15 for Windows
Expand All @@ -86,8 +86,8 @@ jobs:
- name: Build
run: go build -v .

- name: Install gossa
run: go install -v ./cmd/gossa
- name: Install igop
run: go install -v ./cmd/igop

- name: Go Test amd64
run: |
Expand All @@ -97,7 +97,7 @@ jobs:
- name: Test $GOROOT/test amd64
run: |
set GOARCH=amd64
go run ./cmd/gossatest
go run ./cmd/igoptest
- name: Go Test 386
run: |
Expand All @@ -107,4 +107,4 @@ jobs:
- name: Go $GOROOT/test 386
run: |
set GOARCH=386
go run ./cmd/gossatest
go run ./cmd/igoptest
20 changes: 10 additions & 10 deletions .github/workflows/go116.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,14 @@ jobs:
- name: Build
run: go build -v .

- name: Install gossa
run: go install -v ./cmd/gossa
- name: Install igop
run: go install -v ./cmd/igop

- name: Go Test
run: GOARCH=amd64 go test -race -v .

- name: Test $GOROOT/test
run: GOARCH=amd64 go run ./cmd/gossatest
run: GOARCH=amd64 go run ./cmd/igoptest

linux:
name: Test Go1.16 for Linux
Expand All @@ -57,14 +57,14 @@ jobs:
- name: Build
run: go build -v .

- name: Install gossa
run: go install -v ./cmd/gossa
- name: Install igop
run: go install -v ./cmd/igop

- name: Go Test amd64
run: GOARCH=amd64 go test -race -v .

- name: Test $GOROOT/test
run: GOARCH=amd64 go run ./cmd/gossatest
run: GOARCH=amd64 go run ./cmd/igoptest

windows:
name: Test Go1.16 for Windows
Expand All @@ -86,8 +86,8 @@ jobs:
- name: Build
run: go build -v .

- name: Install gossa
run: go install -v ./cmd/gossa
- name: Install igop
run: go install -v ./cmd/igop

- name: Go Test amd64
run: |
Expand All @@ -97,7 +97,7 @@ jobs:
- name: Test $GOROOT/test amd64
run: |
set GOARCH=amd64
go run ./cmd/gossatest
go run ./cmd/igoptest
- name: Go Test 386
run: |
Expand All @@ -107,4 +107,4 @@ jobs:
- name: Go $GOROOT/test 386
run: |
set GOARCH=386
go run ./cmd/gossatest
go run ./cmd/igoptest
20 changes: 10 additions & 10 deletions .github/workflows/go117.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,14 @@ jobs:
- name: Build
run: go build -v .

- name: Install gossa
run: go install -v ./cmd/gossa
- name: Install igop
run: go install -v ./cmd/igop

- name: Go Test
run: GOARCH=amd64 go test -race -v .

- name: Test $GOROOT/test
run: GOARCH=amd64 go run ./cmd/gossatest
run: GOARCH=amd64 go run ./cmd/igoptest

linux:
name: Test Go1.17 for Linux
Expand All @@ -57,14 +57,14 @@ jobs:
- name: Build
run: go build -v .

- name: Install gossa
run: go install -v ./cmd/gossa
- name: Install igop
run: go install -v ./cmd/igop

- name: Go Test amd64
run: GOARCH=amd64 go test -race -v .

- name: Test $GOROOT/test
run: GOARCH=amd64 go run ./cmd/gossatest
run: GOARCH=amd64 go run ./cmd/igoptest

windows:
name: Test Go1.17 for Windows
Expand All @@ -86,8 +86,8 @@ jobs:
- name: Build
run: go build -v .

- name: Install gossa
run: go install -v ./cmd/gossa
- name: Install igop
run: go install -v ./cmd/igop

- name: Go Test amd64
run: |
Expand All @@ -97,7 +97,7 @@ jobs:
- name: Test $GOROOT/test amd64
run: |
set GOARCH=amd64
go run ./cmd/gossatest
go run ./cmd/igoptest
- name: Go Test 386
run: |
Expand All @@ -107,4 +107,4 @@ jobs:
- name: Go $GOROOT/test 386
run: |
set GOARCH=386
go run ./cmd/gossatest
go run ./cmd/igoptest
20 changes: 10 additions & 10 deletions .github/workflows/go118.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,14 @@ jobs:
- name: Build
run: go build -v .

- name: Install gossa
run: go install -v ./cmd/gossa
- name: Install igop
run: go install -v ./cmd/igop

- name: Go Test
run: GOARCH=amd64 go test -race -v .

- name: Test $GOROOT/test
run: GOARCH=amd64 go run ./cmd/gossatest
run: GOARCH=amd64 go run ./cmd/igoptest

linux:
name: Test Go1.18 for Linux
Expand All @@ -57,14 +57,14 @@ jobs:
- name: Build
run: go build -v .

- name: Install gossa
run: go install -v ./cmd/gossa
- name: Install igop
run: go install -v ./cmd/igop

- name: Go Test amd64
run: GOARCH=amd64 go test -race -v .

- name: Test $GOROOT/test
run: GOARCH=amd64 go run ./cmd/gossatest
run: GOARCH=amd64 go run ./cmd/igoptest

windows:
name: Test Go1.18 for Windows
Expand All @@ -86,8 +86,8 @@ jobs:
- name: Build
run: go build -v .

- name: Install gossa
run: go install -v ./cmd/gossa
- name: Install igop
run: go install -v ./cmd/igop

- name: Go Test amd64
run: |
Expand All @@ -97,7 +97,7 @@ jobs:
- name: Test $GOROOT/test amd64
run: |
set GOARCH=amd64
go run ./cmd/gossatest
go run ./cmd/igoptest
- name: Go Test 386
run: |
Expand All @@ -107,4 +107,4 @@ jobs:
- name: Go $GOROOT/test 386
run: |
set GOARCH=386
go run ./cmd/gossatest
go run ./cmd/igoptest
32 changes: 16 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,33 +21,33 @@ support ABI0 and ABIInternal
- Go1.18 type parameters
- Go1.18 fuzzing

### gossa command line
### igop command line
```
go get -u github.com/goplus/gossa/cmd/gossa
go get -u github.com/goplus/igop/cmd/igop
```

Commands
```
gossa run # interpret package
gossa test # test package
igop run # interpret package
igop test # test package
```

### gossa repl mode
### igop repl mode
```
gossa # run repl mode, support Go/Go+
gossa repl # run repl mode, support Go/Go+
gossa repl -gop=false # run repl mode, disable Go+ syntax
igop # run repl mode, support Go/Go+
igop repl # run repl mode, support Go/Go+
igop repl -gop=false # run repl mode, disable Go+ syntax
```

### gossa package
### igop package

**run go source**
```
package main
import (
"github.com/goplus/gossa"
_ "github.com/goplus/gossa/pkg/fmt"
"github.com/goplus/igop"
_ "github.com/goplus/igop/pkg/fmt"
)
var source = `
Expand All @@ -61,7 +61,7 @@ func main() {
`
func main() {
_, err := gossa.RunFile("main.go", source, nil, 0)
_, err := igop.RunFile("main.go", source, nil, 0)
if err != nil {
panic(err)
}
Expand All @@ -74,17 +74,17 @@ func main() {
package main
import (
"github.com/goplus/gossa"
_ "github.com/goplus/gossa/gopbuild"
_ "github.com/goplus/gossa/pkg/fmt"
"github.com/goplus/igop"
_ "github.com/goplus/igop/gopbuild"
_ "github.com/goplus/igop/pkg/fmt"
)
var source = `
println "Hello, Go+"
`
func main() {
_, err := gossa.RunFile("main.gop", source, nil, 0)
_, err := igop.RunFile("main.gop", source, nil, 0)
if err != nil {
panic(err)
}
Expand Down
4 changes: 2 additions & 2 deletions binop.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package gossa
package igop

import (
"reflect"

"github.com/goplus/gossa/internal/xtype"
"github.com/goplus/igop/internal/xtype"
"golang.org/x/tools/go/ssa"
)

Expand Down
Loading

0 comments on commit 0b93b05

Please sign in to comment.