meta: add compile time check for go1.8+

This commit is contained in:
Todd 2017-09-21 17:17:45 -05:00
parent eab436cb20
commit 237685187d
2 changed files with 22 additions and 0 deletions

10
mingo.go Normal file
View File

@ -0,0 +1,10 @@
// Copyright 2017 Baliance. All rights reserved.
//
// Use of this source code is governed by the terms of the Affero GNU General
// Public License version 3.0 as published by the Free Software Foundation and
// appearing in the file LICENSE included in the packaging of this file. A
// commercial license can be purchased by contacting sales@baliance.com.
package gooxml
const MinGoVersion = requires_go_18

12
mingo_18.go Normal file
View File

@ -0,0 +1,12 @@
// Copyright 2017 Baliance. All rights reserved.
//
// Use of this source code is governed by the terms of the Affero GNU General
// Public License version 3.0 as published by the Free Software Foundation and
// appearing in the file LICENSE included in the packaging of this file. A
// commercial license can be purchased by contacting sales@baliance.com.
// +build go1.8
package gooxml
const requires_go_18 = true