all: go fmt ./... Make all our package sources use Go 1.17 gofmt format (adding //go:build lines). Not strictly necessary but will avoid spurious changes as files are edited. Part of //go:build change (#41184). See https://golang.org/design/draft-gobuild Change-Id: If4c413bd9353648ac1d21b90c2b3da952a8d9914 Reviewed-on: https://go-review.googlesource.com/c/debug/+/294373 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: Robert Griesemer <gri@golang.org>
diff --git a/cmd/viewcore/html.go b/cmd/viewcore/html.go index a39ebef..15b3dc3 100644 --- a/cmd/viewcore/html.go +++ b/cmd/viewcore/html.go
@@ -2,7 +2,9 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +//go:build !aix && !plan9 // +build !aix,!plan9 + // (https://golang.org/issue/32839) package main
diff --git a/cmd/viewcore/main.go b/cmd/viewcore/main.go index 7cc9e3c..ce3c469 100644 --- a/cmd/viewcore/main.go +++ b/cmd/viewcore/main.go
@@ -5,6 +5,7 @@ // Skip aix and plan9 for now: github.com/chzyer/readline doesn't support them. // (https://golang.org/issue/32839) // +//go:build !aix && !plan9 // +build !aix,!plan9 // The viewcore tool is a command-line tool for exploring the state of a Go process
diff --git a/internal/core/core_test.go b/internal/core/core_test.go index 3b56997..1b5be13 100644 --- a/internal/core/core_test.go +++ b/internal/core/core_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 darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris // +build darwin dragonfly freebsd linux netbsd openbsd solaris package core
diff --git a/internal/core/process_unix.go b/internal/core/process_unix.go index 9ca644b..f6ba6ab 100644 --- a/internal/core/process_unix.go +++ b/internal/core/process_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 darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris // +build darwin dragonfly freebsd linux netbsd openbsd solaris package core
diff --git a/internal/gocore/dominator_test.go b/internal/gocore/dominator_test.go index 5607a9a..71247d9 100644 --- a/internal/gocore/dominator_test.go +++ b/internal/gocore/dominator_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 darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris // +build darwin dragonfly freebsd linux netbsd openbsd solaris package gocore
diff --git a/internal/gocore/gocore_test.go b/internal/gocore/gocore_test.go index 51c5bee..0b33ca6 100644 --- a/internal/gocore/gocore_test.go +++ b/internal/gocore/gocore_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 darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris // +build darwin dragonfly freebsd linux netbsd openbsd solaris package gocore