feat(go_version): check go version at build time

```
$ ./build
can't load package: package github.com/coreos/etcd:
src/github.com/coreos/etcd/go_version.go:3:1: expected 'package', found
'STRING' "etcd requires go 1.1 or greater to build"
```
release-0.4
Brandon Philips 2013-08-16 15:14:19 -07:00
parent 0cb5eef40a
commit 70f2590127
1 changed files with 3 additions and 0 deletions

3
go_version.go Normal file
View File

@ -0,0 +1,3 @@
// +build !go1.1
"etcd requires go 1.1 or greater to build"