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/LICENSE | 9 ++++++++ .../theckman/goconstraint/LICENSES/unlicense.txt | 24 ++++++++++++++++++++++ .../theckman/goconstraint/go1.8/gte/constraint.go | 8 ++++++++ .../theckman/goconstraint/go1.8/gte/go18.go | 7 +++++++ 4 files changed, 48 insertions(+) create mode 100644 vendor/github.com/theckman/goconstraint/LICENSE create mode 100644 vendor/github.com/theckman/goconstraint/LICENSES/unlicense.txt 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') diff --git a/vendor/github.com/theckman/goconstraint/LICENSE b/vendor/github.com/theckman/goconstraint/LICENSE new file mode 100644 index 00000000..9403d859 --- /dev/null +++ b/vendor/github.com/theckman/goconstraint/LICENSE @@ -0,0 +1,9 @@ +This package is released under two software licenses (MIT | Public Domain): + +* The `scripts/` directory is released under the MIT License. This license can + be found in the `LICENSES` directory as mit.txt [1]. +* All other files are released to the Public Domain using The Unlicense . This + license can be found in the `LICENSES` directory as unlicense.txt [2]. + +[1] https://github.com/theckman/goconstraint/blob/master/LICENSES/mit.txt +[2] https://github.com/theckman/goconstraint/blob/master/LICENSES/unlicense.txt diff --git a/vendor/github.com/theckman/goconstraint/LICENSES/unlicense.txt b/vendor/github.com/theckman/goconstraint/LICENSES/unlicense.txt new file mode 100644 index 00000000..fdddb29a --- /dev/null +++ b/vendor/github.com/theckman/goconstraint/LICENSES/unlicense.txt @@ -0,0 +1,24 @@ +This is free and unencumbered software released into the public domain. + +Anyone is free to copy, modify, publish, use, compile, sell, or +distribute this software, either in source code form or as a compiled +binary, for any purpose, commercial or non-commercial, and by any +means. + +In jurisdictions that recognize copyright laws, the author or authors +of this software dedicate any and all copyright interest in the +software to the public domain. We make this dedication for the benefit +of the public at large and to the detriment of our heirs and +successors. We intend this dedication to be an overt act of +relinquishment in perpetuity of all present and future rights to this +software under copyright law. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR +OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, +ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +OTHER DEALINGS IN THE SOFTWARE. + +For more information, please refer to 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