This repository has been archived by the owner on Feb 18, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from theckman/go1.11
Add support for Go 1.11+ Signed-off-by: Tim Heckman <t@heckman.io>
- Loading branch information
Showing
5 changed files
with
36 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
// The contents of this file has been released in to the Public Domain. | ||
|
||
// Package gtego111 should only be used as a blank import. If imported, it | ||
// will only compile if the Go runtime version is >= 1.11. | ||
package gtego111 | ||
|
||
// This will fail to compile if the Go runtime version isn't >= 1.11. | ||
var _ = __SOFTWARE_REQUIRES_GO_VERSION_1_11__ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
// The contents of this file has been released in to the Public Domain. | ||
|
||
// +build go1.11 | ||
|
||
package gtego111 | ||
|
||
const __SOFTWARE_REQUIRES_GO_VERSION_1_11__ = uint8(0) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
// The contents of this file has been released in to the Public Domain. | ||
|
||
package gtego111_test | ||
|
||
import ( | ||
"testing" | ||
|
||
_ "github.com/theckman/goconstraint/go1.11/gte" | ||
) | ||
|
||
// This test is is intentionally blank and exists only so `go test` believes | ||
// there is something to test. | ||
// | ||
// The blank import above is actually what invokes the test of this package. If | ||
// the import succeeds (the code compiles), the test passed. | ||
func Test(t *testing.T) {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters