From 1e36bfe10404cb77c12f6dfc8665564f3a41ad7e Mon Sep 17 00:00:00 2001 From: Torkel Rogstad Date: Thu, 10 Feb 2022 16:12:31 +0100 Subject: [PATCH] Use cross Go version compatible build tag syntax --- assert/assertion_compare_can_convert.go | 1 + assert/assertion_compare_go1.17_test.go | 1 + assert/assertion_compare_legacy.go | 1 + 3 files changed, 3 insertions(+) diff --git a/assert/assertion_compare_can_convert.go b/assert/assertion_compare_can_convert.go index 4a5627c32..df22c47fc 100644 --- a/assert/assertion_compare_can_convert.go +++ b/assert/assertion_compare_can_convert.go @@ -1,3 +1,4 @@ +//go:build go1.17 // +build go1.17 // TODO: once support for Go 1.16 is dropped, this file can be diff --git a/assert/assertion_compare_go1.17_test.go b/assert/assertion_compare_go1.17_test.go index bff219de6..d3ea935fa 100644 --- a/assert/assertion_compare_go1.17_test.go +++ b/assert/assertion_compare_go1.17_test.go @@ -1,3 +1,4 @@ +//go:build go1.17 // +build go1.17 // TODO: once support for Go 1.16 is dropped, this file can be diff --git a/assert/assertion_compare_legacy.go b/assert/assertion_compare_legacy.go index 0bb8ad712..1701af2a3 100644 --- a/assert/assertion_compare_legacy.go +++ b/assert/assertion_compare_legacy.go @@ -1,3 +1,4 @@ +//go:build !go1.17 // +build !go1.17 // TODO: once support for Go 1.16 is dropped, this file can be