view bindings/go/conftest.go @ 109:6916f1d3a436

meu
author Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
date Mon, 01 Feb 2016 03:02:03 +0900
parents 60c9769439b8
children
line wrap: on
line source

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)
}