Commit 4112db1bde for golang
commit 4112db1bde81e6fab08cee14c95e68588b930f95
Author: iamrajiv <rajivperfect007@gmail.com>
Date: Wed Dec 2 02:24:56 2026 +0530
cmd/go, net/http: gofmt
These are the only files outside testdata that gofmt would change:
misaligned trailing comments in a block of calls, a stray blank line at
the end of a file, and a function body that no longer fits on one line.
Change-Id: I321470380799d2997a77e79a3a73c0d177f325b0
Reviewed-on: https://go-review.googlesource.com/c/go/+/866501
Auto-Submit: Ian Lance Taylor <iant@golang.org>
LUCI-TryBot-Result: golang-scoped@luci-project-accounts.iam.gserviceaccount.com <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Reviewed-by: David Chase <drchase@google.com>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
diff --git a/src/cmd/go/internal/work/security_test.go b/src/cmd/go/internal/work/security_test.go
index 7c80c0d50a..5b049e067d 100644
--- a/src/cmd/go/internal/work/security_test.go
+++ b/src/cmd/go/internal/work/security_test.go
@@ -1081,10 +1081,10 @@ func TestCheckLinkerObjectSections(t *testing.T) {
binary.LittleEndian.PutUint32(buf[32:36], 0x19)
binary.LittleEndian.PutUint32(buf[36:40], cmdSize)
copy(buf[40:56], segName)
- binary.LittleEndian.PutUint64(buf[64:72], 4) // vmsize
- binary.LittleEndian.PutUint64(buf[72:80], 32+cmdSize) // fileoff
- binary.LittleEndian.PutUint64(buf[80:88], 4) // filesize
- binary.LittleEndian.PutUint32(buf[96:100], 1) // nsects = 1
+ binary.LittleEndian.PutUint64(buf[64:72], 4) // vmsize
+ binary.LittleEndian.PutUint64(buf[72:80], 32+cmdSize) // fileoff
+ binary.LittleEndian.PutUint64(buf[80:88], 4) // filesize
+ binary.LittleEndian.PutUint32(buf[96:100], 1) // nsects = 1
// section_64 at offset 32+72 = 104
copy(buf[104:120], secName)
copy(buf[120:136], segName)
diff --git a/src/net/http/header.go b/src/net/http/header.go
index df08bb72d8..088f048933 100644
--- a/src/net/http/header.go
+++ b/src/net/http/header.go
@@ -231,4 +231,3 @@ func (h Header) writeSubset(w io.Writer, exclude map[string]bool, trace *httptra
// If s contains a space or invalid header field bytes, it is
// returned without modifications.
func CanonicalHeaderKey(s string) string { return textproto.CanonicalMIMEHeaderKey(s) }
-
diff --git a/src/net/http/serve_test.go b/src/net/http/serve_test.go
index cc3f2f8731..ed03ca9fa5 100644
--- a/src/net/http/serve_test.go
+++ b/src/net/http/serve_test.go
@@ -3644,7 +3644,9 @@ func testRequestBodyLimit(t *testing.T, mode testMode) {
// TestClientWriteShutdown tests that if the client shuts down the write
// side of their TCP connection, the server doesn't send a 400 Bad Request.
-func TestClientWriteShutdown(t *testing.T) { runSynctest(t, testClientWriteShutdown, testSkipMode{http3Mode}) }
+func TestClientWriteShutdown(t *testing.T) {
+ runSynctest(t, testClientWriteShutdown, testSkipMode{http3Mode})
+}
func testClientWriteShutdown(t *testing.T, mode testMode) {
if runtime.GOOS == "plan9" {
t.Skip("skipping test; see https://golang.org/issue/17906")