From 7aafe3d8b2c8b138c431d5fcc98a4d2a7c3270f9 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Thu, 8 Aug 2019 14:30:50 -0700 Subject: Fix all Go tests to build with "go build" Tested against Go 1.6 through Go 1.13beta1, and gccgo. Fixes #1607 --- Examples/go/callback/runme.go | 2 +- Examples/go/class/runme.go | 2 +- Examples/go/constants/runme.go | 2 +- Examples/go/director/runme.go | 2 +- Examples/go/enum/runme.go | 2 +- Examples/go/extend/runme.go | 2 +- Examples/go/funcptr/runme.go | 2 +- Examples/go/multimap/runme.go | 2 +- Examples/go/pointer/runme.go | 2 +- Examples/go/reference/runme.go | 2 +- Examples/go/simple/runme.go | 2 +- Examples/go/template/runme.go | 2 +- Examples/go/variables/runme.go | 2 +- 13 files changed, 13 insertions(+), 13 deletions(-) (limited to 'Examples/go') diff --git a/Examples/go/callback/runme.go b/Examples/go/callback/runme.go index 2c1d81343..7c9ffd681 100644 --- a/Examples/go/callback/runme.go +++ b/Examples/go/callback/runme.go @@ -3,7 +3,7 @@ package main import ( "fmt" - . "example" + . "swigtests/example" ) func main() { diff --git a/Examples/go/class/runme.go b/Examples/go/class/runme.go index d2f292ed4..a09a18247 100644 --- a/Examples/go/class/runme.go +++ b/Examples/go/class/runme.go @@ -5,7 +5,7 @@ package main import ( "fmt" - . "example" + . "swigtests/example" ) func main() { diff --git a/Examples/go/constants/runme.go b/Examples/go/constants/runme.go index d56fd62c8..57ef21a8b 100644 --- a/Examples/go/constants/runme.go +++ b/Examples/go/constants/runme.go @@ -3,7 +3,7 @@ package main import ( "fmt" - "example" + "swigtests/example" ) func main() { diff --git a/Examples/go/director/runme.go b/Examples/go/director/runme.go index 0e0da07bd..e28eccba6 100644 --- a/Examples/go/director/runme.go +++ b/Examples/go/director/runme.go @@ -4,7 +4,7 @@ import ( "fmt" "os" - "example" + "swigtests/example" ) func Compare(name string, got string, exp string) error { diff --git a/Examples/go/enum/runme.go b/Examples/go/enum/runme.go index 50887056e..c0642e0b5 100644 --- a/Examples/go/enum/runme.go +++ b/Examples/go/enum/runme.go @@ -3,7 +3,7 @@ package main import ( "fmt" - . "example" + . "swigtests/example" ) func main() { diff --git a/Examples/go/extend/runme.go b/Examples/go/extend/runme.go index af64a6e5d..716af52c5 100644 --- a/Examples/go/extend/runme.go +++ b/Examples/go/extend/runme.go @@ -5,7 +5,7 @@ package main import ( "fmt" - . "example" + . "swigtests/example" ) func main() { diff --git a/Examples/go/funcptr/runme.go b/Examples/go/funcptr/runme.go index 4b20db4fb..87ec7d495 100644 --- a/Examples/go/funcptr/runme.go +++ b/Examples/go/funcptr/runme.go @@ -3,7 +3,7 @@ package main import ( "fmt" - . "example" + . "swigtests/example" ) func main() { diff --git a/Examples/go/multimap/runme.go b/Examples/go/multimap/runme.go index 571fac7c2..2f8b20568 100644 --- a/Examples/go/multimap/runme.go +++ b/Examples/go/multimap/runme.go @@ -3,7 +3,7 @@ package main import ( "fmt" - . "example" + . "swigtests/example" ) func main() { diff --git a/Examples/go/pointer/runme.go b/Examples/go/pointer/runme.go index 0cf340f51..73c6b2b3c 100644 --- a/Examples/go/pointer/runme.go +++ b/Examples/go/pointer/runme.go @@ -3,7 +3,7 @@ package main import ( "fmt" - . "example" + . "swigtests/example" ) func main() { diff --git a/Examples/go/reference/runme.go b/Examples/go/reference/runme.go index 9999733b3..7391d9c8b 100644 --- a/Examples/go/reference/runme.go +++ b/Examples/go/reference/runme.go @@ -5,7 +5,7 @@ package main import ( "fmt" - . "example" + . "swigtests/example" ) func main() { diff --git a/Examples/go/simple/runme.go b/Examples/go/simple/runme.go index 0bd4657f9..5bc055f2e 100644 --- a/Examples/go/simple/runme.go +++ b/Examples/go/simple/runme.go @@ -3,7 +3,7 @@ package main import ( "fmt" - "example" + "swigtests/example" ) func main() { diff --git a/Examples/go/template/runme.go b/Examples/go/template/runme.go index 347795377..e000b1579 100644 --- a/Examples/go/template/runme.go +++ b/Examples/go/template/runme.go @@ -5,7 +5,7 @@ package main import ( "fmt" - . "example" + . "swigtests/example" ) func main() { diff --git a/Examples/go/variables/runme.go b/Examples/go/variables/runme.go index e2dd0c67f..85ca8c638 100644 --- a/Examples/go/variables/runme.go +++ b/Examples/go/variables/runme.go @@ -5,7 +5,7 @@ package main import ( "fmt" - "example" + "swigtests/example" ) func main() { -- cgit v1.2.1