summaryrefslogtreecommitdiff
path: root/src/pkg/http/response_test.go
diff options
context:
space:
mode:
authorRobert Griesemer <gri@golang.org>2010-03-02 13:46:51 -0800
committerRobert Griesemer <gri@golang.org>2010-03-02 13:46:51 -0800
commit10f55215a4d4ac643bf04202704b4fec01417bba (patch)
treee6032529c69dbf4925dc7da8a0641ff6bb264b3d /src/pkg/http/response_test.go
parentedc1c5e40d5b639a38b7a0b7484d51edab3bcb62 (diff)
downloadgolang-10f55215a4d4ac643bf04202704b4fec01417bba.tar.gz
gofmt: experiment: align values in map composites where possible
- gofmt -w src misc - looking for feedback R=rsc, r CC=golang-dev http://codereview.appspot.com/223076
Diffstat (limited to 'src/pkg/http/response_test.go')
-rw-r--r--src/pkg/http/response_test.go64
1 files changed, 32 insertions, 32 deletions
diff --git a/src/pkg/http/response_test.go b/src/pkg/http/response_test.go
index 6024a6271..889b770be 100644
--- a/src/pkg/http/response_test.go
+++ b/src/pkg/http/response_test.go
@@ -28,16 +28,16 @@ var respTests = []respTest{
"Body here\n",
Response{
- Status: "200 OK",
- StatusCode: 200,
- Proto: "HTTP/1.0",
- ProtoMajor: 1,
- ProtoMinor: 0,
+ Status: "200 OK",
+ StatusCode: 200,
+ Proto: "HTTP/1.0",
+ ProtoMajor: 1,
+ ProtoMinor: 0,
RequestMethod: "GET",
Header: map[string]string{
"Connection": "close", // TODO(rsc): Delete?
},
- Close: true,
+ Close: true,
ContentLength: -1,
},
@@ -53,17 +53,17 @@ var respTests = []respTest{
"Body here\n",
Response{
- Status: "200 OK",
- StatusCode: 200,
- Proto: "HTTP/1.0",
- ProtoMajor: 1,
- ProtoMinor: 0,
+ Status: "200 OK",
+ StatusCode: 200,
+ Proto: "HTTP/1.0",
+ ProtoMajor: 1,
+ ProtoMinor: 0,
RequestMethod: "GET",
Header: map[string]string{
- "Connection": "close", // TODO(rsc): Delete?
- "Content-Length": "10", // TODO(rsc): Delete?
+ "Connection": "close", // TODO(rsc): Delete?
+ "Content-Length": "10", // TODO(rsc): Delete?
},
- Close: true,
+ Close: true,
ContentLength: 10,
},
@@ -81,15 +81,15 @@ var respTests = []respTest{
"\r\n",
Response{
- Status: "200 OK",
- StatusCode: 200,
- Proto: "HTTP/1.0",
- ProtoMajor: 1,
- ProtoMinor: 0,
- RequestMethod: "GET",
- Header: map[string]string{},
- Close: true,
- ContentLength: -1,
+ Status: "200 OK",
+ StatusCode: 200,
+ Proto: "HTTP/1.0",
+ ProtoMajor: 1,
+ ProtoMinor: 0,
+ RequestMethod: "GET",
+ Header: map[string]string{},
+ Close: true,
+ ContentLength: -1,
TransferEncoding: []string{"chunked"},
},
@@ -108,15 +108,15 @@ var respTests = []respTest{
"\r\n",
Response{
- Status: "200 OK",
- StatusCode: 200,
- Proto: "HTTP/1.0",
- ProtoMajor: 1,
- ProtoMinor: 0,
- RequestMethod: "GET",
- Header: map[string]string{},
- Close: true,
- ContentLength: -1, // TODO(rsc): Fix?
+ Status: "200 OK",
+ StatusCode: 200,
+ Proto: "HTTP/1.0",
+ ProtoMajor: 1,
+ ProtoMinor: 0,
+ RequestMethod: "GET",
+ Header: map[string]string{},
+ Close: true,
+ ContentLength: -1, // TODO(rsc): Fix?
TransferEncoding: []string{"chunked"},
},