Skip to content

Commit

Permalink
Merge pull request #1489 from visualfc/import_name
Browse files Browse the repository at this point in the history
update gox version
  • Loading branch information
xushiwei committed Oct 23, 2023
2 parents 3aacc65 + c2f160e commit 27d8dc2
Show file tree
Hide file tree
Showing 13 changed files with 337 additions and 337 deletions.
12 changes: 6 additions & 6 deletions cl/compile_c2go_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ C.printf C"Hello, world!\n"
`, `package main
import (
libc "github.com/goplus/gop/cl/internal/libc"
unsafe "unsafe"
"github.com/goplus/gop/cl/internal/libc"
"unsafe"
)
func main() {
Expand All @@ -53,8 +53,8 @@ C.printf C"Hello, world!\n"
`, `package main
import (
libc "github.com/goplus/gop/cl/internal/libc"
unsafe "unsafe"
"github.com/goplus/gop/cl/internal/libc"
"unsafe"
)
func main() {
Expand All @@ -71,8 +71,8 @@ C.printf C"Hello, world!\n"
`, `package main
import (
libc "github.com/goplus/gop/cl/internal/libc"
unsafe "unsafe"
"github.com/goplus/gop/cl/internal/libc"
"unsafe"
)
func main() {
Expand Down
46 changes: 23 additions & 23 deletions cl/compile_spx_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ func onMsg(msg string) {
}
`, `package main
import spx "github.com/goplus/gop/cl/internal/spx"
import "github.com/goplus/gop/cl/internal/spx"
type Game struct {
*spx.MyGame
Expand Down Expand Up @@ -211,8 +211,8 @@ func onInit() {
`, ``, `package main
import (
fmt "fmt"
spx "github.com/goplus/gop/cl/internal/spx"
"fmt"
"github.com/goplus/gop/cl/internal/spx"
)
const Foo = 1
Expand Down Expand Up @@ -248,8 +248,8 @@ func onInit() {
`, `package main
import (
spx "github.com/goplus/gop/cl/internal/spx"
math "math"
"github.com/goplus/gop/cl/internal/spx"
"math"
)
type Game struct {
Expand Down Expand Up @@ -301,7 +301,7 @@ func onCloned() {
}
`, `package main
import spx "github.com/goplus/gop/cl/internal/spx"
import "github.com/goplus/gop/cl/internal/spx"
type Game struct {
*spx.MyGame
Expand Down Expand Up @@ -341,8 +341,8 @@ println "Hi"
`, `package main
import (
fmt "fmt"
spx "github.com/goplus/gop/cl/internal/spx"
"fmt"
"github.com/goplus/gop/cl/internal/spx"
)
var x float64 = spx.Rand__1(1.2)
Expand Down Expand Up @@ -378,8 +378,8 @@ func onMsg(msg string) {
`, `package main
import (
fmt "fmt"
spx2 "github.com/goplus/gop/cl/internal/spx2"
"fmt"
"github.com/goplus/gop/cl/internal/spx2"
)
type Game struct {
Expand Down Expand Up @@ -410,8 +410,8 @@ func onMsg(msg string) {
`, `package main
import (
fmt "fmt"
spx2 "github.com/goplus/gop/cl/internal/spx2"
"fmt"
"github.com/goplus/gop/cl/internal/spx2"
)
type Game struct {
Expand Down Expand Up @@ -442,8 +442,8 @@ func onMsg(msg string) {
`, `package main
import (
fmt "fmt"
spx2 "github.com/goplus/gop/cl/internal/spx2"
"fmt"
"github.com/goplus/gop/cl/internal/spx2"
)
type Dog struct {
Expand Down Expand Up @@ -472,7 +472,7 @@ func TestSpxMainEntry(t *testing.T) {
`, `
`, `package main
import spx2 "github.com/goplus/gop/cl/internal/spx2"
import "github.com/goplus/gop/cl/internal/spx2"
type Game struct {
spx2.Game
Expand All @@ -491,7 +491,7 @@ var (
`, `
`, `package main
import spx2 "github.com/goplus/gop/cl/internal/spx2"
import "github.com/goplus/gop/cl/internal/spx2"
type Game struct {
spx2.Game
Expand Down Expand Up @@ -525,8 +525,8 @@ func onMsg(msg string) {
`, `package main
import (
fmt "fmt"
spx2 "github.com/goplus/gop/cl/internal/spx2"
"fmt"
"github.com/goplus/gop/cl/internal/spx2"
)
type Game struct {
Expand Down Expand Up @@ -566,7 +566,7 @@ func onMsg(msg string) {
}
`, `package main
import spx "github.com/goplus/gop/cl/internal/spx"
import "github.com/goplus/gop/cl/internal/spx"
type Game struct {
*spx.MyGame
Expand Down Expand Up @@ -624,7 +624,7 @@ func onCloned() {
}
`, `package main
import spx "github.com/goplus/gop/cl/internal/spx"
import "github.com/goplus/gop/cl/internal/spx"
type info struct {
x int
Expand Down Expand Up @@ -672,7 +672,7 @@ func onMsg(msg string) {
}
`, `package main
import spx "github.com/goplus/gop/cl/internal/spx"
import "github.com/goplus/gop/cl/internal/spx"
type Game struct {
*spx.MyGame
Expand Down Expand Up @@ -705,8 +705,8 @@ func onMsg(msg string) {
`, `package main
import (
fmt "fmt"
spx "github.com/goplus/gop/cl/internal/spx"
"fmt"
"github.com/goplus/gop/cl/internal/spx"
)
type Game struct {
Expand Down
Loading

0 comments on commit 27d8dc2

Please sign in to comment.