From b4fa94e45b7fd96f039d350297a98bc7102cf4a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Mart=C3=AD?= Date: Tue, 23 May 2023 09:11:53 +0100 Subject: [PATCH] use go:build in script/imports.txtar This form has been preferred over +build since Go 1.17. --- testdata/script/imports.txtar | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/testdata/script/imports.txtar b/testdata/script/imports.txtar index 956317f..6992545 100644 --- a/testdata/script/imports.txtar +++ b/testdata/script/imports.txtar @@ -96,13 +96,13 @@ func main() { fmt.Println(sql.Drivers()[0]) } -- notag_fail.go -- -// +build !buildtag +//go:build !buildtag package main var foo int = "should be omitted by -tags" -- withtag_success.go -- -// +build buildtag +//go:build buildtag package main