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/encoding | |
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/encoding')
-rw-r--r-- | src/encoding/csv/fuzz.go | 1 | ||||
-rw-r--r-- | src/encoding/gob/debug.go | 1 | ||||
-rw-r--r-- | src/encoding/gob/decgen.go | 1 | ||||
-rw-r--r-- | src/encoding/gob/dump.go | 1 | ||||
-rw-r--r-- | src/encoding/gob/encgen.go | 1 | ||||
-rw-r--r-- | src/encoding/json/fuzz.go | 1 |
6 files changed, 6 insertions, 0 deletions
diff --git a/src/encoding/csv/fuzz.go b/src/encoding/csv/fuzz.go index 8be21d5d28..a03fa83d8c 100644 --- a/src/encoding/csv/fuzz.go +++ b/src/encoding/csv/fuzz.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 gofuzz // +build gofuzz package csv diff --git a/src/encoding/gob/debug.go b/src/encoding/gob/debug.go index 8f93742f49..5965fea921 100644 --- a/src/encoding/gob/debug.go +++ b/src/encoding/gob/debug.go @@ -3,6 +3,7 @@ // license that can be found in the LICENSE file. // Delete the next line to include in the gob package. +//go:build ignore // +build ignore package gob diff --git a/src/encoding/gob/decgen.go b/src/encoding/gob/decgen.go index 1c31e66625..994be877d9 100644 --- a/src/encoding/gob/decgen.go +++ b/src/encoding/gob/decgen.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 // encgen writes the helper functions for encoding. Intended to be diff --git a/src/encoding/gob/dump.go b/src/encoding/gob/dump.go index 17238c98df..8c0bbc4ff2 100644 --- a/src/encoding/gob/dump.go +++ b/src/encoding/gob/dump.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 package main diff --git a/src/encoding/gob/encgen.go b/src/encoding/gob/encgen.go index 409b8c9d95..b562da177d 100644 --- a/src/encoding/gob/encgen.go +++ b/src/encoding/gob/encgen.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 // encgen writes the helper functions for encoding. Intended to be diff --git a/src/encoding/json/fuzz.go b/src/encoding/json/fuzz.go index be03f0d7ff..d3fa2d1113 100644 --- a/src/encoding/json/fuzz.go +++ b/src/encoding/json/fuzz.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 gofuzz // +build gofuzz package json |