- 06 Nov, 2011 1 commit
-
-
Luuk van Dijk authored
Fixes #2422. R=rsc CC=golang-dev https://golang.org/cl/5353046
-
- 05 Nov, 2011 2 commits
-
-
Charles L. Dorian authored
Having the compiler count the number of array elements speeds up Gamma from 63.7 to 56.6 ns/op. R=rsc, golang-dev, r CC=golang-dev https://golang.org/cl/5362043
-
David Symonds authored
R=rsc, r CC=golang-dev https://golang.org/cl/5347041
-
- 04 Nov, 2011 20 commits
-
-
Ian Lance Taylor authored
R=golang-dev, rsc, iant CC=golang-dev https://golang.org/cl/5356042
-
Charles L. Dorian authored
Maximum error for 386 is "close" (1e-14). For amd64, it's "veryclose" (4e-16). R=rsc, golang-dev CC=golang-dev https://golang.org/cl/5340042
-
Jani Monoses authored
The permitted filename characters should include ~ to allow the names of user-owned branches in Launchpad. R=golang-dev, rsc, n13m3y3r, gustavo CC=golang-dev, gustavo.niemeyer https://golang.org/cl/5280052
-
Gustavo Niemeyer authored
R=golang-dev, rsc CC=golang-dev https://golang.org/cl/5340046
-
Mike Samuel authored
This does escaping on first execution. template.go defines the same interface elements as package template. It requires rather more duplication of code than I'd like, but I'm not clear how to avoid that. Maybe instead of mySet.ParseGlob(...) template.ParseSetGlob(...) mySet.ParseFiles(...) mySet.ParseTemplateFiles(...) template.ParseTemplateFiles(...) we combine these into a fileset abstraction that can be wrapped var fileset template.FileSet fileset.Glob(...) // Load a few files by glob fileset.Files(...) // Load a few {{define}}d files fileset.TemplateFiles(...) // Load a few files as template bodies fileset.Funcs(...) // Make the givens func available to templates // Do the parsing. set, err := fileset.ParseSet() // or set, err := fileset.ParseInto(set) or provide an interface that can receive filenames and functions and parse messages: type Bundle interface { TemplateFile(string) File(string) Funcs(FuncMap) } and define template.Parse* to handle the file-system stuff and send messages to a bundle: func ParseFiles(b Bundle, filenames ...string) R=r, r CC=golang-dev https://golang.org/cl/5270042
-
Brad Fitzpatrick authored
Available after closing Request.Body. R=adg, rsc CC=golang-dev https://golang.org/cl/5348041
-
Luuk van Dijk authored
Fixes #873 Fixes #2162 R=rsc CC=golang-dev https://golang.org/cl/5341043
-
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 17 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
-