From 8a6a8055d723e523d9943244b042c778d75b02cc Mon Sep 17 00:00:00 2001 From: Michael Muré Date: Sun, 23 Dec 2018 23:03:19 +0100 Subject: add a check for the minimal go version (1.8) --- vendor/github.com/theckman/goconstraint/go1.8/gte/constraint.go | 8 ++++++++ vendor/github.com/theckman/goconstraint/go1.8/gte/go18.go | 7 +++++++ 2 files changed, 15 insertions(+) create mode 100644 vendor/github.com/theckman/goconstraint/go1.8/gte/constraint.go create mode 100644 vendor/github.com/theckman/goconstraint/go1.8/gte/go18.go (limited to 'vendor/github.com/theckman/goconstraint/go1.8') diff --git a/vendor/github.com/theckman/goconstraint/go1.8/gte/constraint.go b/vendor/github.com/theckman/goconstraint/go1.8/gte/constraint.go new file mode 100644 index 00000000..24c248d6 --- /dev/null +++ b/vendor/github.com/theckman/goconstraint/go1.8/gte/constraint.go @@ -0,0 +1,8 @@ +// The contents of this file has been released in to the Public Domain. + +// Package gtego18 should only be used as a blank import. If imported, it +// will only compile if the Go runtime version is >= 1.8. +package gtego18 + +// This will fail to compile if the Go runtime version isn't >= 1.8. +var _ = __SOFTWARE_REQUIRES_GO_VERSION_1_8__ diff --git a/vendor/github.com/theckman/goconstraint/go1.8/gte/go18.go b/vendor/github.com/theckman/goconstraint/go1.8/gte/go18.go new file mode 100644 index 00000000..777fea4d --- /dev/null +++ b/vendor/github.com/theckman/goconstraint/go1.8/gte/go18.go @@ -0,0 +1,7 @@ +// The contents of this file has been released in to the Public Domain. + +// +build go1.8 + +package gtego18 + +const __SOFTWARE_REQUIRES_GO_VERSION_1_8__ = uint8(0) -- cgit