diff options
| author | Robert Griesemer <gri@golang.org> | 2010-03-02 13:46:51 -0800 |
|---|---|---|
| committer | Robert Griesemer <gri@golang.org> | 2010-03-02 13:46:51 -0800 |
| commit | 10f55215a4d4ac643bf04202704b4fec01417bba (patch) | |
| tree | e6032529c69dbf4925dc7da8a0641ff6bb264b3d /src/pkg/http/response_test.go | |
| parent | edc1c5e40d5b639a38b7a0b7484d51edab3bcb62 (diff) | |
| download | golang-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.go | 64 |
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"}, }, |
