From 033299fab66b08d434be30e05d11f7db63efa71c Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Wed, 4 Sep 2019 11:40:03 +0200 Subject: [PATCH] all: add a space before +build in build tag comments MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add a space before build tag comments so it corresponds to the format documented at https://golang.org/pkg/go/build/. Change-Id: I8349d0343597e304b97fb5479847231ed8945b1a Reviewed-on: https://go-review.googlesource.com/c/go/+/193237 Run-TryBot: Tobias Klauser TryBot-Result: Gobot Gobot Reviewed-by: Daniel Martí Reviewed-by: Brad Fitzpatrick --- src/cmd/go/internal/modload/testgo.go | 2 +- src/cmd/go/internal/renameio/renameio_test.go | 2 +- src/cmd/go/internal/renameio/umask_test.go | 2 +- src/cmd/go/internal/robustio/robustio_other.go | 2 +- src/cmd/go/internal/web/url_other.go | 2 +- src/cmd/go/internal/web/url_other_test.go | 2 +- src/cmd/go/testdata/script/test_compile_binary.txt | 2 +- src/runtime/semasleep_test.go | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/cmd/go/internal/modload/testgo.go b/src/cmd/go/internal/modload/testgo.go index 663b24a68d..6b34f5be39 100644 --- a/src/cmd/go/internal/modload/testgo.go +++ b/src/cmd/go/internal/modload/testgo.go @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -//+build testgo +// +build testgo package modload diff --git a/src/cmd/go/internal/renameio/renameio_test.go b/src/cmd/go/internal/renameio/renameio_test.go index 81dba6d545..ace6e493cb 100644 --- a/src/cmd/go/internal/renameio/renameio_test.go +++ b/src/cmd/go/internal/renameio/renameio_test.go @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -//+build !plan9 +// +build !plan9 package renameio diff --git a/src/cmd/go/internal/renameio/umask_test.go b/src/cmd/go/internal/renameio/umask_test.go index 1a471c9e4e..031fe46e09 100644 --- a/src/cmd/go/internal/renameio/umask_test.go +++ b/src/cmd/go/internal/renameio/umask_test.go @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -//+build !nacl,!plan9,!windows,!js +// +build !nacl,!plan9,!windows,!js package renameio diff --git a/src/cmd/go/internal/robustio/robustio_other.go b/src/cmd/go/internal/robustio/robustio_other.go index 91ca56cb82..56e6ad6d9c 100644 --- a/src/cmd/go/internal/robustio/robustio_other.go +++ b/src/cmd/go/internal/robustio/robustio_other.go @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -//+build !windows +// +build !windows package robustio diff --git a/src/cmd/go/internal/web/url_other.go b/src/cmd/go/internal/web/url_other.go index bd243e591a..2641ee62bf 100644 --- a/src/cmd/go/internal/web/url_other.go +++ b/src/cmd/go/internal/web/url_other.go @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -//+build !windows +// +build !windows package web diff --git a/src/cmd/go/internal/web/url_other_test.go b/src/cmd/go/internal/web/url_other_test.go index b4a74d94b9..aa5663355e 100644 --- a/src/cmd/go/internal/web/url_other_test.go +++ b/src/cmd/go/internal/web/url_other_test.go @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -//+build !windows +// +build !windows package web diff --git a/src/cmd/go/testdata/script/test_compile_binary.txt b/src/cmd/go/testdata/script/test_compile_binary.txt index 6562f2453f..63bb8ec3e7 100644 --- a/src/cmd/go/testdata/script/test_compile_binary.txt +++ b/src/cmd/go/testdata/script/test_compile_binary.txt @@ -4,5 +4,5 @@ env GO111MODULE=off stderr 'build comment' -- compile_binary/foo_test.go -- -//+build foo +// +build foo package foo diff --git a/src/runtime/semasleep_test.go b/src/runtime/semasleep_test.go index f5b4a50697..3eb7c6a6d1 100644 --- a/src/runtime/semasleep_test.go +++ b/src/runtime/semasleep_test.go @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -//+build !nacl,!plan9,!windows,!js +// +build !nacl,!plan9,!windows,!js package runtime_test