- 04 Nov, 2011 13 commits
-
-
Gustavo Niemeyer authored
There are three classes of methods/functions called Error: a) The Error method in the just introduced error interface b) Error methods that create or report errors (http.Error, etc) c) Error methods that return errors previously associated with the receiver (Tokenizer.Error, rows.Error, etc). This CL introduces the convention that methods in case (c) should be named Err. The reasoning for the change is: - The change differentiates the two kinds of APIs based on names rather than just on signature, unloading Error a bit - Err is closer to the err variable name that is so commonly used with the intent of verifying an error - Err is shorter and thus more convenient to be used often on error verifications, such as in iterators following the convention of the sql package. R=bradfitz, rsc CC=golang-dev https://golang.org/cl/5327064
-
David Symonds authored
This is a continuation of 982d70c6d5d6. R=golang-dev, rsc CC=golang-dev https://golang.org/cl/5348042
-
Russ Cox authored
TBR=r CC=golang-dev https://golang.org/cl/5354041
-
Russ Cox authored
R=golang-dev, r CC=golang-dev https://golang.org/cl/5340043
-
Russ Cox authored
TBR=r CC=golang-dev https://golang.org/cl/5353041
-
Andrew Gerrand authored
R=bradfitz CC=golang-dev https://golang.org/cl/5340044
-
Andrew Gerrand authored
R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/5349041
-
Andrew Balholm authored
Pass tests1.dat, test 87: <table><tr><tr><td><td><span><th><span>X</table> | <html> | <head> | <body> | <table> | <tbody> | <tr> | <tr> | <td> | <td> | <span> | <th> | <span> | "X" R=nigeltao CC=golang-dev https://golang.org/cl/5343041
-
Brad Fitzpatrick authored
Remove the last two "convenience" mentions. R=golang-dev, r CC=golang-dev https://golang.org/cl/5344041
-
Brad Fitzpatrick authored
R=rsc CC=golang-dev https://golang.org/cl/5342041
-
Brad Fitzpatrick authored
This moves DumpRequest, DumpResponse, NewChunkedReader, and NewChunkedWriter out of http, as part of the continued http diet plan. Also, adds DumpRequestOut (for dumping outbound requests), since DumpRequest's ambiguity (the "wire representation" in what direction?) was often a source of confusion and bug reports. R=rsc, adg CC=golang-dev https://golang.org/cl/5339041
-
Rob Pike authored
Need to compare user type, not base type. R=golang-dev, dsymonds, r CC=golang-dev https://golang.org/cl/5340041
-
Brad Fitzpatrick authored
R=golang-dev, dsymonds CC=golang-dev https://golang.org/cl/5322070
-
- 03 Nov, 2011 23 commits
-
-
Brad Fitzpatrick authored
http diet plan, continued. R=golang-dev, adg CC=golang-dev https://golang.org/cl/5305090
-
Andrew Balholm authored
Pass tests1.dat, test 85: <head><meta></head><link> | <html> | <head> | <meta> | <link> | <body> R=nigeltao CC=golang-dev https://golang.org/cl/5297079
-
Brad Fitzpatrick authored
Part of http diet plan. More of the lesser-used and newcomer-misleading parts of http will move here. R=r, rsc CC=golang-dev https://golang.org/cl/5336049
-
Russ Cox authored
runtime knows how to get the time of day without allocating memory. R=golang-dev, dsymonds, dave, hectorchu, r, cw CC=golang-dev https://golang.org/cl/5297078
-
Russ Cox authored
R=golang-dev, r CC=golang-dev https://golang.org/cl/5305087
-
David Symonds authored
This partially undoes 8fd7e6d070c8, but preserves its semantics. More importantly, it results in the data about each fix being decentralised, which makes it easier for new fixes to be added, and other gofix users to slot new fixes in. It also adds some useful metadata that could be used in the future. R=golang-dev, rsc CC=golang-dev https://golang.org/cl/5306092
-
Rob Pike authored
This is Go 1 package renaming CL #4. This one merely moves the source; the import strings will be changed after the next weekly release. This one moves pieces into os, text, and unicode. exec -> os/exec scanner -> text/scanner tabwriter -> text/tabwriter template -> text/template template/parse -> text/template/parse utf16 -> unicode/utf16 utf8 -> unicode/utf8 This should be the last of the source-rearranging CLs. R=golang-dev, rsc CC=golang-dev https://golang.org/cl/5331066
-
Vincent Vanackere authored
R=golang-dev, r CC=golang-dev https://golang.org/cl/5334050
-
Rob Pike authored
This is Go 1 package renaming CL #3. This one merely moves the source; the import strings will be changed after the next weekly release. This one moves pieces into net. http -> net/http http/cgi -> net/http/cgi http/fcgi -> net/http/fcgi http/pprof -> net/http/pprof http/httptest -> net/http/httptest mail -> net/mail rpc -> net/rpc rpc/jsonrpc -> net/rpc/jsonrpc smtp -> net/smtp url -> net/url Also remove rand (now math/rand) from NOTEST - it has a test. The only edits are in Makefiles and deps.bash. R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/5335048
-
Rob Pike authored
This is Go 1 package renaming CL #2. This one merely moves the source; the import strings will be changed after the next weekly release. exp/template/html -> html/template big -> math/big cmath -> math/cmplx rand -> math/rand syslog -> log/syslog The only edits are in Makefiles and deps.bash. Note that this CL moves exp/template/html out of exp. I decided to do that so all the renamings can be done together, even though the API (and that of template, for that matter) is still fluid. R=r, rsc CC=golang-dev https://golang.org/cl/5332053
-
Brad Fitzpatrick authored
ClientConn's main feature (pipelining support) wasn't being used anyway. Ends up simpler to just not use it. This is prep for the http diet, moving ClientConn, ServerConn, etc into http/httputil. R=golang-dev, rsc CC=golang-dev https://golang.org/cl/5305088
-
Russ Cox authored
Now that vector is gone, there is no precedent to refer to. This is a confusing point for people looking to use the package. R=golang-dev, r, cw CC=golang-dev https://golang.org/cl/5322069
-
Rob Pike authored
Use simpler shell constructs. R=golang-dev CC=golang-dev https://golang.org/cl/5297080
-
Rob Pike authored
This is Go 1 package renaming CL #1. This one merely moves the source; the import strings will be changed after the next weekly release. The only edits are in Makefiles. R=r, rsc CC=golang-dev https://golang.org/cl/5331060
-
Luuk van Dijk authored
Fixes #2355. I have a test, but not sure if it's worth adding. Instead i've made the patching-over in reflect.c methods more fatal and more descriptive. R=rsc CC=golang-dev https://golang.org/cl/5302082
-
Russ Cox authored
R=lvd, lvd CC=golang-dev https://golang.org/cl/5332051
-
Russ Cox authored
Fixes #2333. R=r CC=golang-dev https://golang.org/cl/5316075
-
Russ Cox authored
R=ken2 CC=golang-dev https://golang.org/cl/5298091
-
Andrew Balholm authored
Pass tests1.dat, test 83: <title><meta></title><link><title><meta></title> | <html> | <head> | <title> | "<meta>" | <link> | <title> | "<meta>" | <body> Also pass test 84: <style><!--</style><meta><script>--><link></script> R=nigeltao CC=golang-dev https://golang.org/cl/5331061
-
Andrew Gerrand authored
R=golang-dev, r CC=golang-dev https://golang.org/cl/5337041
-
David Symonds authored
R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/5303095
-
Fumitoshi Ukai authored
websocket spec had changed server-side requiements to return an HTTP response with an appropriate error code (such as 400 Bad Request) when it finds client did not send a handshake that matches websocket protocol, rather than just closing connection. It needs to flush out response before closing connection. Fixes issues 2396. R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/5318072
-
Mikio Hara authored
R=golang-dev, r CC=golang-dev https://golang.org/cl/5330068
-
- 02 Nov, 2011 4 commits
-
-
Andrew Balholm authored
Pass tests1.dat, test 80: <a href=a>aa<marquee>aa<a href=b>bb</marquee>aa | <html> | <head> | <body> | <a> | href="a" | "aa" | <marquee> | "aa" | <a> | href="b" | "bb" | "aa" Also pass tests through test 82: <!DOCTYPE html><spacer>foo R=nigeltao CC=golang-dev https://golang.org/cl/5319071
-
Luuk van Dijk authored
R=rsc CC=golang-dev https://golang.org/cl/5323071
-
Russ Cox authored
R=golang-dev, r CC=golang-dev https://golang.org/cl/5319072
-
Russ Cox authored
Add ast.SortImports(fset, file) to go/ast, for use by both programs. Fixes #346. R=golang-dev, r CC=golang-dev https://golang.org/cl/5330069
-