support ABI0 and ABIInternal
-
ABI0 stack-based ABI
-
ABIInternal register-based Go calling convention proposal
- Go1.17: amd64
- Go1.18: amd64 arm64 ppc64/ppc64le
- Go1.19: amd64 arm64 ppc64/ppc64le riscv64
support Go1.18 Go1.19 generics
Go version < 1.17:
go get -u github.com/goplus/igop/cmd/igop
Go version >= 1.17:
go install github.com/goplus/igop/cmd/igop@latest
Commands
igop # igop repl mode
igop run # run a Go/Go+ package
igop build # compile a Go/Go+ package
igop test # test a package
igop verson # print version
igop export # export Go package to igop builtin package
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
- test -fuzz
- test -cover
run go source
package main
import (
"github.com/goplus/igop"
_ "github.com/goplus/igop/pkg/fmt"
)
var source = `
package main
import "fmt"
func main() {
fmt.Println("hello")
}
`
func main() {
_, err := igop.RunFile("main.go", source, nil, 0)
if err != nil {
panic(err)
}
}
run gop source
package main
import (
"github.com/goplus/igop"
_ "github.com/goplus/igop/gopbuild"
_ "github.com/goplus/igop/pkg/fmt"
)
var source = `
println "Hello, Go+"
`
func main() {
_, err := igop.RunFile("main.gop", source, nil, 0)
if err != nil {
panic(err)
}
}