Fix all Go tests to build with "go build"

Tested against Go 1.6 through Go 1.13beta1, and gccgo.

Fixes #1607
This commit is contained in:
Ian Lance Taylor 2019-08-08 14:30:50 -07:00
commit 7aafe3d8b2
167 changed files with 246 additions and 392 deletions

View file

@ -1,7 +1,7 @@
// Note: This example assumes that namespaces are flattened
package main
import "cpp_namespace"
import "swigtests/cpp_namespace"
func main() {
n := cpp_namespace.Fact(4)