From fcb26fe61c20c621b27469c8d09aec7da23e69ca Mon Sep 17 00:00:00 2001 From: Brad Fitzpatrick Date: Wed, 20 Oct 2021 08:28:07 -0700 Subject: [PATCH] windows: gofmt to add go:build lines Change-Id: I71b9023fcb6c9860ea35ba0d2cf77a6eed5176b9 Reviewed-on: https://go-review.googlesource.com/c/sys/+/357329 Reviewed-by: Jason A. Donenfeld Reviewed-by: David Crawshaw Trust: Jason A. Donenfeld Trust: David Crawshaw Run-TryBot: Jason A. Donenfeld TryBot-Result: Go Bot --- windows/aliases.go | 4 ++-- windows/eventlog.go | 1 + windows/mksyscall.go | 1 + windows/race.go | 1 + windows/race0.go | 1 + windows/service.go | 1 + windows/str.go | 1 + windows/syscall.go | 1 + windows/syscall_test.go | 1 + 9 files changed, 10 insertions(+), 2 deletions(-) diff --git a/windows/aliases.go b/windows/aliases.go index af3af60d..a20ebea6 100644 --- a/windows/aliases.go +++ b/windows/aliases.go @@ -2,8 +2,8 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -// +build windows -// +build go1.9 +//go:build windows && go1.9 +// +build windows,go1.9 package windows diff --git a/windows/eventlog.go b/windows/eventlog.go index 40af946e..2cd60645 100644 --- a/windows/eventlog.go +++ b/windows/eventlog.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 windows // +build windows package windows diff --git a/windows/mksyscall.go b/windows/mksyscall.go index 328e3b2a..61029109 100644 --- a/windows/mksyscall.go +++ b/windows/mksyscall.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 generate // +build generate package windows diff --git a/windows/race.go b/windows/race.go index a74e3e24..9196b089 100644 --- a/windows/race.go +++ b/windows/race.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 windows && race // +build windows,race package windows diff --git a/windows/race0.go b/windows/race0.go index e44a3cbf..7bae4817 100644 --- a/windows/race0.go +++ b/windows/race0.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 windows && !race // +build windows,!race package windows diff --git a/windows/service.go b/windows/service.go index 1a22b3e8..5b28ae16 100644 --- a/windows/service.go +++ b/windows/service.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 windows // +build windows package windows diff --git a/windows/str.go b/windows/str.go index 917cc2aa..4fc01434 100644 --- a/windows/str.go +++ b/windows/str.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 windows // +build windows package windows diff --git a/windows/syscall.go b/windows/syscall.go index 6122f557..72074d58 100644 --- a/windows/syscall.go +++ b/windows/syscall.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 windows // +build windows // Package windows contains an interface to the low-level operating system diff --git a/windows/syscall_test.go b/windows/syscall_test.go index af3ff32d..fd4a0156 100644 --- a/windows/syscall_test.go +++ b/windows/syscall_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 windows // +build windows package windows_test