aboutsummaryrefslogtreecommitdiff
path: root/src/encoding
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2021-08-25 12:48:26 -0400
committerRuss Cox <rsc@golang.org>2021-10-28 18:17:57 +0000
commitf229e7031a6efb2f23241b5da000c3b3203081d6 (patch)
tree69664f4f4b37d9256133addc8f0328590b70a055 /src/encoding
parented475fe53ba41c0c15b11565f8b9d00165345bc2 (diff)
downloadgo-f229e7031a6efb2f23241b5da000c3b3203081d6.tar.xz
all: go fix -fix=buildtag std cmd (except for bootstrap deps, vendor)
When these packages are released as part of Go 1.18, Go 1.16 will no longer be supported, so we can remove the +build tags in these files. Ran go fix -fix=buildtag std cmd and then reverted the bootstrapDirs as defined in src/cmd/dist/buildtool.go, which need to continue to build with Go 1.4 for now. Also reverted src/vendor and src/cmd/vendor, which will need to be updated in their own repos first. Manual changes in runtime/pprof/mprof_test.go to adjust line numbers. For #41184. Change-Id: Ic0f93f7091295b6abc76ed5cd6e6746e1280861e Reviewed-on: https://go-review.googlesource.com/c/go/+/344955 Trust: Russ Cox <rsc@golang.org> Run-TryBot: Russ Cox <rsc@golang.org> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Bryan C. Mills <bcmills@google.com>
Diffstat (limited to 'src/encoding')
-rw-r--r--src/encoding/csv/fuzz.go1
-rw-r--r--src/encoding/gob/debug.go1
-rw-r--r--src/encoding/gob/decgen.go1
-rw-r--r--src/encoding/gob/dump.go1
-rw-r--r--src/encoding/gob/encgen.go1
-rw-r--r--src/encoding/json/fuzz.go1
6 files changed, 0 insertions, 6 deletions
diff --git a/src/encoding/csv/fuzz.go b/src/encoding/csv/fuzz.go
index a03fa83d8c..5f5cdfcbf8 100644
--- a/src/encoding/csv/fuzz.go
+++ b/src/encoding/csv/fuzz.go
@@ -3,7 +3,6 @@
// 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 5965fea921..5ceb2bfac7 100644
--- a/src/encoding/gob/debug.go
+++ b/src/encoding/gob/debug.go
@@ -4,7 +4,6 @@
// 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 994be877d9..e40816eb86 100644
--- a/src/encoding/gob/decgen.go
+++ b/src/encoding/gob/decgen.go
@@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.
//go:build ignore
-// +build ignore
// encgen writes the helper functions for encoding. Intended to be
// used with go generate; see the invocation in encode.go.
diff --git a/src/encoding/gob/dump.go b/src/encoding/gob/dump.go
index 8c0bbc4ff2..f4b1bebfba 100644
--- a/src/encoding/gob/dump.go
+++ b/src/encoding/gob/dump.go
@@ -3,7 +3,6 @@
// 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 b562da177d..e5f68786a0 100644
--- a/src/encoding/gob/encgen.go
+++ b/src/encoding/gob/encgen.go
@@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.
//go:build ignore
-// +build ignore
// encgen writes the helper functions for encoding. Intended to be
// used with go generate; see the invocation in encode.go.
diff --git a/src/encoding/json/fuzz.go b/src/encoding/json/fuzz.go
index d3fa2d1113..f00898a798 100644
--- a/src/encoding/json/fuzz.go
+++ b/src/encoding/json/fuzz.go
@@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.
//go:build gofuzz
-// +build gofuzz
package json