Skip to content

Commit 1dd8150

Browse files
committed
Merge pull request #231 from QuentinPerez/check_go_version
Check the go version
2 parents 141dcf7 + 6a3ee9c commit 1dd8150

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

goversion.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
// +build go1.5
2+
3+
package goversion

goversion_unsupported.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
// +build !go1.5
2+
3+
package goversion
4+
5+
func error() {
6+
`Bad go version, please install a version greater than or equal to 1.5`
7+
}

0 commit comments

Comments
 (0)