Skip to content

Commit

Permalink
all: go fmt ./...
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
rsc committed Feb 20, 2021
1 parent c934e1b commit 6a9ae25
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmd/viewcore/html.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions cmd/viewcore/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions internal/core/core_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions internal/core/process_unix.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions internal/gocore/dominator_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions internal/gocore/gocore_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6a9ae25

Please sign in to comment.