Skip to content

Commit 6a3ee9c

Browse files
author
Quentin Perez
committed
Check the go version
1 parent 141dcf7 commit 6a3ee9c

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)