Browse files

Add a canary file to suggest Go 1.10 is required

Closes #22
  • Loading branch information...
FiloSottile committed Jul 3, 2018
1 parent 941dfcf commit bf29b706fc6b43ec1b3dbaeaebb006d38bb2b78f
Showing with 8 additions and 0 deletions.
  1. +8 −0 go110min.go
@@ -0,0 +1,8 @@
//+build !go1.10

package main

// This file is here to give a better hint in the error message
// when this project is built with a too old version of Go.

var _ = ThisProjectRequiresGo1·10OrHigher

2 comments on commit bf29b70


This comment has been minimized.

Copy link

adamdecaf replied Jul 3, 2018

@FiloSottile Won't this break on Go 1.11?


This comment has been minimized.

Copy link

FiloSottile replied Jul 3, 2018

@adamdecaf Nope, tags are applied to all following versions too.

Please sign in to comment.