From cad8f365d2768be28b2b1c382907ff94136bc14c Mon Sep 17 00:00:00 2001 From: Carlos Roman Date: Mon, 9 Jan 2023 12:11:36 +0100 Subject: [PATCH] Added new Golang build constraints introduced in Go 1.17 --- statsd/benchmark_report_metric_noop_test.go | 1 + statsd/benchmark_report_metric_test.go | 1 + statsd/end_to_end_uds_test.go | 1 + statsd/pipe.go | 1 + statsd/pipe_windows.go | 1 + statsd/pipe_windows_test.go | 1 + statsd/uds.go | 1 + statsd/uds_test.go | 1 + statsd/uds_windows.go | 1 + 9 files changed, 9 insertions(+) diff --git a/statsd/benchmark_report_metric_noop_test.go b/statsd/benchmark_report_metric_noop_test.go index 8e1cabd87..837e91d5a 100644 --- a/statsd/benchmark_report_metric_noop_test.go +++ b/statsd/benchmark_report_metric_noop_test.go @@ -1,3 +1,4 @@ +//go:build !go1.13 // +build !go1.13 package statsd_test diff --git a/statsd/benchmark_report_metric_test.go b/statsd/benchmark_report_metric_test.go index dcf0f522a..cb7325e14 100644 --- a/statsd/benchmark_report_metric_test.go +++ b/statsd/benchmark_report_metric_test.go @@ -1,3 +1,4 @@ +//go:build go1.13 // +build go1.13 package statsd_test diff --git a/statsd/end_to_end_uds_test.go b/statsd/end_to_end_uds_test.go index be4f4b9a3..7f15f1a37 100644 --- a/statsd/end_to_end_uds_test.go +++ b/statsd/end_to_end_uds_test.go @@ -1,3 +1,4 @@ +//go:build !windows // +build !windows package statsd diff --git a/statsd/pipe.go b/statsd/pipe.go index 84c38e966..426359c5f 100644 --- a/statsd/pipe.go +++ b/statsd/pipe.go @@ -1,3 +1,4 @@ +//go:build !windows // +build !windows package statsd diff --git a/statsd/pipe_windows.go b/statsd/pipe_windows.go index 5ab60f00c..2ca85f70f 100644 --- a/statsd/pipe_windows.go +++ b/statsd/pipe_windows.go @@ -1,3 +1,4 @@ +//go:build windows // +build windows package statsd diff --git a/statsd/pipe_windows_test.go b/statsd/pipe_windows_test.go index 1efbf2b8d..0a3279e70 100644 --- a/statsd/pipe_windows_test.go +++ b/statsd/pipe_windows_test.go @@ -1,3 +1,4 @@ +//go:build windows // +build windows package statsd diff --git a/statsd/uds.go b/statsd/uds.go index fa5f5917f..510a7603b 100644 --- a/statsd/uds.go +++ b/statsd/uds.go @@ -1,3 +1,4 @@ +//go:build !windows // +build !windows package statsd diff --git a/statsd/uds_test.go b/statsd/uds_test.go index fb1c0c829..939b3e2c1 100644 --- a/statsd/uds_test.go +++ b/statsd/uds_test.go @@ -1,3 +1,4 @@ +//go:build !windows // +build !windows package statsd diff --git a/statsd/uds_windows.go b/statsd/uds_windows.go index 077894a33..bd358aefc 100644 --- a/statsd/uds_windows.go +++ b/statsd/uds_windows.go @@ -1,3 +1,4 @@ +//go:build windows // +build windows package statsd