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/time | |
parent | 0625460f79eed41039939f957baceaff5e269672 (diff) | |
download | go-d4b26382342c98a95b85140b2863bc30c48edd68.tar.gz go-d4b26382342c98a95b85140b2863bc30c48edd68.zip |
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/time')
-rw-r--r-- | src/time/embed.go | 1 | ||||
-rw-r--r-- | src/time/genzabbrs.go | 1 | ||||
-rw-r--r-- | src/time/sys_plan9.go | 1 | ||||
-rw-r--r-- | src/time/sys_unix.go | 1 | ||||
-rw-r--r-- | src/time/tzdata/generate_zipdata.go | 1 | ||||
-rw-r--r-- | src/time/zoneinfo_ios.go | 1 | ||||
-rw-r--r-- | src/time/zoneinfo_js.go | 1 | ||||
-rw-r--r-- | src/time/zoneinfo_unix.go | 1 | ||||
-rw-r--r-- | src/time/zoneinfo_unix_test.go | 1 |
9 files changed, 9 insertions, 0 deletions
diff --git a/src/time/embed.go b/src/time/embed.go index cb4fdac4ef..34490c859d 100644 --- a/src/time/embed.go +++ b/src/time/embed.go @@ -5,6 +5,7 @@ // This file is used with build tag timetzdata to embed tzdata into // the binary. +//go:build timetzdata // +build timetzdata package time diff --git a/src/time/genzabbrs.go b/src/time/genzabbrs.go index 9825e705d2..9fd2f2b762 100644 --- a/src/time/genzabbrs.go +++ b/src/time/genzabbrs.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 // diff --git a/src/time/sys_plan9.go b/src/time/sys_plan9.go index b7fba0802c..4dc55e44aa 100644 --- a/src/time/sys_plan9.go +++ b/src/time/sys_plan9.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 // +build plan9 package time diff --git a/src/time/sys_unix.go b/src/time/sys_unix.go index 97b1140bbc..60fc090dc9 100644 --- a/src/time/sys_unix.go +++ b/src/time/sys_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 || (js && wasm) || linux || netbsd || openbsd || solaris // +build aix darwin dragonfly freebsd js,wasm linux netbsd openbsd solaris package time diff --git a/src/time/tzdata/generate_zipdata.go b/src/time/tzdata/generate_zipdata.go index 21357fbf1c..64b5b1b22c 100644 --- a/src/time/tzdata/generate_zipdata.go +++ b/src/time/tzdata/generate_zipdata.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 program generates zipdata.go from $GOROOT/lib/time/zoneinfo.zip. diff --git a/src/time/zoneinfo_ios.go b/src/time/zoneinfo_ios.go index 0f1e9334b5..044691e130 100644 --- a/src/time/zoneinfo_ios.go +++ b/src/time/zoneinfo_ios.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 ios // +build ios package time diff --git a/src/time/zoneinfo_js.go b/src/time/zoneinfo_js.go index 2d76a571f2..8245614d2e 100644 --- a/src/time/zoneinfo_js.go +++ b/src/time/zoneinfo_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 time diff --git a/src/time/zoneinfo_unix.go b/src/time/zoneinfo_unix.go index d2465eef65..4ea029dbde 100644 --- a/src/time/zoneinfo_unix.go +++ b/src/time/zoneinfo_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 && !ios) || dragonfly || freebsd || (linux && !android) || netbsd || openbsd || solaris // +build aix darwin,!ios dragonfly freebsd linux,!android netbsd openbsd solaris // Parse "zoneinfo" time zone file. diff --git a/src/time/zoneinfo_unix_test.go b/src/time/zoneinfo_unix_test.go index f290ae754f..b75b374c3d 100644 --- a/src/time/zoneinfo_unix_test.go +++ b/src/time/zoneinfo_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 && !ios) || dragonfly || freebsd || (linux && !android) || netbsd || openbsd || solaris // +build aix darwin,!ios dragonfly freebsd linux,!android netbsd openbsd solaris package time_test |