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/hash | |
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/hash')
-rw-r--r-- | src/hash/crc32/crc32_otherarch.go | 1 | ||||
-rw-r--r-- | src/hash/crc32/gen_const_ppc64le.go | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/src/hash/crc32/crc32_otherarch.go b/src/hash/crc32/crc32_otherarch.go index 1a5e542ab6..936e5bf3e0 100644 --- a/src/hash/crc32/crc32_otherarch.go +++ b/src/hash/crc32/crc32_otherarch.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 !amd64 && !s390x && !ppc64le && !arm64 // +build !amd64,!s390x,!ppc64le,!arm64 package crc32 diff --git a/src/hash/crc32/gen_const_ppc64le.go b/src/hash/crc32/gen_const_ppc64le.go index d7af018af4..c98454c685 100644 --- a/src/hash/crc32/gen_const_ppc64le.go +++ b/src/hash/crc32/gen_const_ppc64le.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 // Generate the constant table associated with the poly used by the |