Skip to content

Commit

Permalink
Add a canary file to suggest Go 1.10 is required
Browse files Browse the repository at this point in the history
Closes #22
  • Loading branch information
FiloSottile committed Jul 3, 2018
1 parent 941dfcf commit bf29b70
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions 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

@adamdecaf
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@FiloSottile Won't this break on Go 1.11?

@FiloSottile
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Please sign in to comment.