From 6fdb46821292c5b7e2b417e5ad18e20b829161c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Carvalho?= Date: Mon, 24 Apr 2017 18:05:17 -0300 Subject: [PATCH] api: add build tag for go 1.7 --- api/client.go | 2 ++ api/client_test.go | 2 ++ api/prometheus/v1/api.go | 2 ++ api/prometheus/v1/api_test.go | 2 ++ 4 files changed, 8 insertions(+) diff --git a/api/client.go b/api/client.go index a6ef8f7..513e455 100644 --- a/api/client.go +++ b/api/client.go @@ -11,6 +11,8 @@ // See the License for the specific language governing permissions and // limitations under the License. +// +build go1.7 + // Package api provides clients the HTTP API's. package api diff --git a/api/client_test.go b/api/client_test.go index 8db4f76..53226d7 100644 --- a/api/client_test.go +++ b/api/client_test.go @@ -11,6 +11,8 @@ // See the License for the specific language governing permissions and // limitations under the License. +// +build go1.7 + package api import ( diff --git a/api/prometheus/v1/api.go b/api/prometheus/v1/api.go index d849b09..421f181 100644 --- a/api/prometheus/v1/api.go +++ b/api/prometheus/v1/api.go @@ -11,6 +11,8 @@ // See the License for the specific language governing permissions and // limitations under the License. +// +build go1.7 + // Package v1 provides bindings to the Prometheus HTTP API v1: // http://prometheus.io/docs/querying/api/ package v1 diff --git a/api/prometheus/v1/api_test.go b/api/prometheus/v1/api_test.go index 0b7a635..2c8b1b2 100644 --- a/api/prometheus/v1/api_test.go +++ b/api/prometheus/v1/api_test.go @@ -11,6 +11,8 @@ // See the License for the specific language governing permissions and // limitations under the License. +// +build go1.7 + package v1 import (