Skip to content

Commit 036812b

Browse files
committed
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: Ie3f0a5f80ab53b95a25db9ccfd9a3cc4ea7ff465 Reviewed-on: https://go-review.googlesource.com/c/sync/+/294370 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>
1 parent 09787c9 commit 036812b

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

semaphore/semaphore_bench_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// Use of this source code is governed by a BSD-style
33
// license that can be found in the LICENSE file.
44

5+
//go:build go1.7
56
// +build go1.7
67

78
package semaphore_test

syncmap/go19.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// Use of this source code is governed by a BSD-style
33
// license that can be found in the LICENSE file.
44

5+
//go:build go1.9
56
// +build go1.9
67

78
package syncmap

syncmap/pre_go19.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// Use of this source code is governed by a BSD-style
33
// license that can be found in the LICENSE file.
44

5+
//go:build !go1.9
56
// +build !go1.9
67

78
package syncmap

0 commit comments

Comments
 (0)