diff options
Diffstat (limited to 'bindings/go/conftest.go')
-rw-r--r-- | bindings/go/conftest.go | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/bindings/go/conftest.go b/bindings/go/conftest.go new file mode 100644 index 0000000000000..d97fb89f7c2b6 --- /dev/null +++ b/bindings/go/conftest.go @@ -0,0 +1,16 @@ +package main + +import ( + "go/build" + "os" +) + +// Tests that the Go compiler is at least version 1.2. +func main() { + for _, tag := range build.Default.ReleaseTags { + if tag == "go1.2" { + os.Exit(0) + } + } + os.Exit(1) +} |