diff options
| author | Russ Cox <rsc@golang.org> | 2021-02-19 18:35:10 -0500 |
|---|---|---|
| committer | Russ Cox <rsc@golang.org> | 2021-02-20 03:54:50 +0000 |
| commit | d4b26382342c98a95b85140b2863bc30c48edd68 (patch) | |
| tree | 6ef0d77cc69a5a99a90fb528d083f6aca7448667 /src/os/exec | |
| parent | 0625460f79eed41039939f957baceaff5e269672 (diff) | |
| download | go-d4b26382342c98a95b85140b2863bc30c48edd68.tar.xz | |
all: go fmt std cmd (but revert vendor)
Make all our package sources use Go 1.17 gofmt format
(adding //go:build lines).
Part of //go:build change (#41184).
See https://golang.org/design/draft-gobuild
Change-Id: Ia0534360e4957e58cd9a18429c39d0e32a6addb4
Reviewed-on: https://go-review.googlesource.com/c/go/+/294430
Trust: Russ Cox <rsc@golang.org>
Run-TryBot: Russ Cox <rsc@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Jason A. Donenfeld <Jason@zx2c4.com>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Diffstat (limited to 'src/os/exec')
| -rw-r--r-- | src/os/exec/exec_linux_test.go | 1 | ||||
| -rw-r--r-- | src/os/exec/exec_posix_test.go | 1 | ||||
| -rw-r--r-- | src/os/exec/exec_unix.go | 1 | ||||
| -rw-r--r-- | src/os/exec/lp_js.go | 1 | ||||
| -rw-r--r-- | src/os/exec/lp_unix.go | 1 | ||||
| -rw-r--r-- | src/os/exec/lp_unix_test.go | 1 | ||||
| -rw-r--r-- | src/os/exec/read3.go | 1 |
7 files changed, 7 insertions, 0 deletions
diff --git a/src/os/exec/exec_linux_test.go b/src/os/exec/exec_linux_test.go index 6f850204d6..3cfa30ee72 100644 --- a/src/os/exec/exec_linux_test.go +++ b/src/os/exec/exec_linux_test.go @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +//go:build linux && cgo // +build linux,cgo // On systems that use glibc, calling malloc can create a new arena, diff --git a/src/os/exec/exec_posix_test.go b/src/os/exec/exec_posix_test.go index d4d67ac933..7b2c0c0c11 100644 --- a/src/os/exec/exec_posix_test.go +++ b/src/os/exec/exec_posix_test.go @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +//go:build aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris // +build aix darwin dragonfly freebsd linux netbsd openbsd solaris package exec_test diff --git a/src/os/exec/exec_unix.go b/src/os/exec/exec_unix.go index 51c52427c2..467c069e1c 100644 --- a/src/os/exec/exec_unix.go +++ b/src/os/exec/exec_unix.go @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +//go:build !plan9 && !windows // +build !plan9,!windows package exec diff --git a/src/os/exec/lp_js.go b/src/os/exec/lp_js.go index 6750fb99b0..4eac25fe6f 100644 --- a/src/os/exec/lp_js.go +++ b/src/os/exec/lp_js.go @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +//go:build js && wasm // +build js,wasm package exec diff --git a/src/os/exec/lp_unix.go b/src/os/exec/lp_unix.go index 66c1df76fb..d1d246accf 100644 --- a/src/os/exec/lp_unix.go +++ b/src/os/exec/lp_unix.go @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +//go:build aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris // +build aix darwin dragonfly freebsd linux netbsd openbsd solaris package exec diff --git a/src/os/exec/lp_unix_test.go b/src/os/exec/lp_unix_test.go index 296480fd04..75bcdb1fdd 100644 --- a/src/os/exec/lp_unix_test.go +++ b/src/os/exec/lp_unix_test.go @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +//go:build aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris // +build aix darwin dragonfly freebsd linux netbsd openbsd solaris package exec diff --git a/src/os/exec/read3.go b/src/os/exec/read3.go index 8cc24da8cb..a8c71831d8 100644 --- a/src/os/exec/read3.go +++ b/src/os/exec/read3.go @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +//go:build ignore // +build ignore // This is a test program that verifies that it can read from |
