- 17 Oct, 2011 1 commit
-
-
Russ Cox authored
exp/datafmt is incompatible with this change, so delete it. It was scheduled for deletion soon anyway. ««« CL 5266054 / f798c2579fbd reflect: disallow Interface method on Value obtained via unexported name Had been allowing it for use by fmt, but it is too hard to lock down. Fix other packages not to depend on it. R=r, r CC=golang-dev https://golang.org/cl/5266054 »»» R=golang-dev, r CC=golang-dev https://golang.org/cl/5286051
-
- 08 Sep, 2011 1 commit
-
-
Andrew Gerrand authored
««« CL 4873057 / db63f3a1f992 goinstall: select the tag that is closest to runtime.Version release.r50 looks for newest tag <= go.r50 weekly.2010-10-10 looks for newest tag <= go.2010-10-10 Implements behavior for hg, git, and bzr. R=dsymonds, rsc, n13m3y3r CC=golang-dev https://golang.org/cl/4873057 »»» R=golang-dev, dsymonds CC=golang-dev https://golang.org/cl/4974067
-
- 17 Aug, 2011 3 commits
-
-
Rob Pike authored
(Leave exp/template/html where it is for now.) R=golang-dev, dsymonds CC=golang-dev https://golang.org/cl/4899048
-
Rob Pike authored
It's already in old/template; make that build. Update a couple of references to point to the old template. They can be updated later. Update goplay to use exp/template. R=golang-dev, dsymonds CC=golang-dev https://golang.org/cl/4902046
-
Rob Pike authored
This is just moving the URL code from package http into its own package, which has been planned for a while. Besides clarity, this also breaks a nascent dependency cycle the new template package was about to introduce. Add a gofix module, url, and use it to generate changes outside http and url. Sadness about the churn, gladness about some of the naming improvements. R=dsymonds, bradfitz, rsc, gustavo, r CC=golang-dev https://golang.org/cl/4893043
-
- 12 Aug, 2011 1 commit
-
-
Mike Samuel authored
func Reverse(*Template) *Template returns a template that produces the reverse of the original for any input. Changes outside exp/template/html include: - Adding a getter for a template's FuncMap so that derived templates can inherit function definitions. - Exported one node factory function, newIdentifier. Deriving tempaltes requires constructing new nodes, but I didn't export all of them because I think shallow copy functions might be more useful for this kind of work. - Bugfix: Template's Name() method ignores the name field so template.New("foo") is a nil dereference instead of "foo". Caveats: Reverse is a toy. It is not UTF-8 safe, and does not preserve order of calls to funcs in FuncMap. For context, see http://groups.google.com/group/golang-nuts/browse_thread/thread/e8bc7c771aae3f20/b1ac41dc6f609b6e?lnk=gst R=rsc, r, nigeltao, r CC=golang-dev https://golang.org/cl/4808089
-
- 09 Aug, 2011 1 commit
-
-
Rob Pike authored
Mostly a mechanical change, with a few cleanups to make the split easier. The external interface to exp/template is unaffected. In another round I will play with the function map setup to see if I can avoid exposing reflect across the boundary, but that will require some structural changes I did not want to mix into this CL. R=golang-dev, dsymonds CC=golang-dev https://golang.org/cl/4849049
-
- 04 Aug, 2011 1 commit
-
-
Marcel van Lohuizen authored
R=r, bsiegert, r, alex.brainman CC=golang-dev https://golang.org/cl/4662080
-
- 18 Jul, 2011 1 commit
-
-
Ian Lance Taylor authored
The package was always GNU/Linux specific, and is no longer used by anything now that exp/ogle has been removed. R=golang-dev, rsc CC=golang-dev https://golang.org/cl/4757049
-
- 13 Jul, 2011 1 commit
-
-
Robert Griesemer authored
An externally maintained version of exp/eval can be found at: https://bitbucket.org/binet/go-eval/ . R=golang-dev, r, rsc CC=golang-dev https://golang.org/cl/4695047
-
- 01 Jul, 2011 1 commit
-
-
Paul Borman authored
csv reader/writer based on RFC 4180 R=rsc, mattn.jp, r, dchest CC=golang-dev https://golang.org/cl/4629085
-
- 30 Jun, 2011 1 commit
-
-
Russ Cox authored
R=golang-dev, r CC=golang-dev https://golang.org/cl/4629084
-
- 29 Jun, 2011 1 commit
-
-
Rob Pike authored
R=rsc, adg, r CC=golang-dev https://golang.org/cl/4641081
-
- 22 Jun, 2011 1 commit
-
-
Adam Langley authored
R=bradfitz, r CC=golang-dev https://golang.org/cl/4639049
-
- 20 Jun, 2011 1 commit
-
-
Anthony Martin authored
All but two packages depend on net: debug/proc os/signal With this change, we can produce a working build with GOOS=plan9. R=golang-dev, r CC=golang-dev https://golang.org/cl/4639053
-
- 15 Jun, 2011 2 commits
-
-
Russ Cox authored
I don't think we've discussed this API enough. ««« original CL description bike/shed: new package. It comes up often enough that it's time to provide the utility of a standard package. R=r, mirtchovski, adg, rsc, n13m3y3r, ality, go.peter.90, lstoakes, iant, jan.mercl, bsiegert, robert.hencke, rogpeppe, befelemepeseveze, kevlar CC=golang-dev https://golang.org/cl/4557047 »»» R=dsymonds, bradfitz, gri CC=golang-dev https://golang.org/cl/4576065
-
Andrew Gerrand authored
R=rsc, n13m3y3r, kevlar CC=golang-dev https://golang.org/cl/4515180
-
- 13 Jun, 2011 1 commit
-
-
Russ Cox authored
Parser is a work in progress but can populate most of the interesting parts of the data structure, so a good checkpoint. All the complicated Perl syntax is missing, as are various important optimizations made during parsing to the syntax tree. The plan is that exp/regexp's API will mimic regexp, and exp/regexp/syntax provides the parser directly for programs that need it (and for implementing exp/regexp). Once finished, exp/regexp will replace regexp. R=r, sam.thorogood, kevlar, edsrzf CC=golang-dev https://golang.org/cl/4538123
-
- 10 Jun, 2011 1 commit
-
-
David Symonds authored
It comes up often enough that it's time to provide the utility of a standard package. R=r, mirtchovski, adg, rsc, n13m3y3r, ality, go.peter.90, lstoakes, iant, jan.mercl, bsiegert, robert.hencke, rogpeppe, befelemepeseveze, kevlar CC=golang-dev https://golang.org/cl/4557047
-
- 06 Jun, 2011 1 commit
-
-
Adam Langley authored
This change moves a number of common PKIX structures into crypto/x509/pkix, from where x509, and ocsp can reference them, saving duplication. It also removes x509/crl and merges it into x509 and x509/pkix. x509 is changed to take advantage of the big.Int support that now exists in asn1. Because of this, the public/private key pair in http/httptest/server.go had to be updated because it was serialised with an old version of the code that didn't zero pad ASN.1 INTEGERs. R=bradfitz, rsc CC=golang-dev https://golang.org/cl/4532115
-
- 05 Jun, 2011 1 commit
-
-
Nigel Tao authored
R=r CC=golang-dev https://golang.org/cl/4515191
-
- 04 Jun, 2011 1 commit
-
-
Andrew Gerrand authored
R=rsc CC=golang-dev https://golang.org/cl/4433047
-
- 01 Jun, 2011 1 commit
-
-
David Symonds authored
Basic parsing, plus date parsing. R=bradfitz, gary.burd, bsiegert, rsc CC=golang-dev https://golang.org/cl/4530079
-
- 24 May, 2011 1 commit
-
-
Rob Pike authored
Its functionality is now in bufio. Fixes #1869. R=golang-dev, adg CC=golang-dev https://golang.org/cl/4553061
-
- 11 May, 2011 2 commits
-
-
Nigel Tao authored
R=r CC=golang-dev https://golang.org/cl/4521054
-
Adam Langley authored
crl parses CRLs and exposes their details. In the future, Verify should be able to use this for revocation checking. R=bradfitz CC=golang-dev https://golang.org/cl/4485045
-
- 08 May, 2011 1 commit
-
-
Rob Pike authored
It's incomplete but sufficient to decode 8-bit GIFs without interlacing or transparency. More to come. I'll put in more tests as the feature set grows. R=nigeltao, r2 CC=golang-dev https://golang.org/cl/4522041
-
- 05 May, 2011 1 commit
-
-
Benny Siegert authored
The current iteration can decode 8-bit images in grayscale, paletted, RGB, RGBA and NRGBA mode. LZW compression is implemented but does not work on my test images. Deflate (i.e. zlib) compression with or without a horizontal predictor is supported. R=nigeltao, nigeltao_gnome CC=golang-dev, mpl https://golang.org/cl/4240051
-
- 28 Apr, 2011 1 commit
-
-
Ross Light authored
R=bradfitz, agl1, rsc CC=golang-dev https://golang.org/cl/4435055
-
- 27 Apr, 2011 1 commit
-
-
Evan Shaw authored
R=golang-dev, bradfitzgo, bradfitzwork, nigeltao, rog CC=golang-dev https://golang.org/cl/4271078
-
- 22 Apr, 2011 1 commit
-
-
Brad Fitzpatrick authored
Only for Unix presently. Other operating systems are stubbed out, as well as arm (lacks cgo). R=rsc, r, bradfitzwork CC=golang-dev https://golang.org/cl/4440057
-
- 19 Apr, 2011 1 commit
-
-
Nigel Tao authored
It is based on changeset 4186064 by Raph Levien <raph@google.com>. R=r, nigeltao_gnome CC=golang-dev https://golang.org/cl/4435051
-
- 15 Apr, 2011 1 commit
-
-
Russ Cox authored
Don't use external network during all.bash. R=r, r2, rh, ality CC=golang-dev https://golang.org/cl/4429041
-
- 13 Apr, 2011 2 commits
-
-
Robert Griesemer authored
R=rsc CC=golang-dev https://golang.org/cl/4403045
-
Russ Cox authored
This CL changes the behavior of 'make install' and 'make test' in the src/cmd directory and the src/pkg directory to have each recursive make clean up after itself immediately. It does the same in test/run, removing $F.$A and $A.out (the common byproducts) between runs. On machines with slow disks and aggressive kernel caching, cleaning up immediately can mean that the intermediate objects never get written to disk. This change eliminates almost all the disk waiting during all.bash on my laptop (a Thinkpad X201s with an SSD running Linux). 147.50u 19.95s 277.34r before 148.53u 21.64s 179.59r after R=golang-dev, r, iant2 CC=golang-dev https://golang.org/cl/4413042
-
- 12 Apr, 2011 1 commit
-
-
Nigel Tao authored
R=r, rsc, nigeltao_gnome CC=golang-dev, raph https://golang.org/cl/4374043
-
- 08 Apr, 2011 1 commit
-
-
Robert Griesemer authored
This CL defines a new, more Go-like representation of Go types (different structs for different types as opposed to a single Type node). It also implements an ast.Importer for object/archive files generated by the gc compiler tool chain. Besides the individual type structs, the main difference is the handling of named types: In the old world, a named type had a non-nil *Object pointer but otherwise looked no different from other types. In this new model, named types have their own representation types.Name. As a result, resolving cycles is a bit simpler during construction, at the cost of having to deal with types.Name nodes explicitly later. It remains to be seen if this is a good approach. Nevertheless, code involving types reads more nicely and benefits from full type checking. Also, the representation seems to more closely match the spec wording. Credits: The original version of the gc importer was written by Evan Shaw (chickencha@gmail.com). The new version in this CL is based largely on Evan's original code but contains bug fixes, a few simplifications, some restructuring, and was adjusted to use the new type hierarchy. I have added a comprehensive test that imports all packages found under $GOROOT/pkg (with a 3s time-out to limit the run-time of the test). Run gotest -v for details. The original version of ExportData (exportdata.go) was written by Russ Cox (rsc@golang.org). The current version is returning the internal buffer positioned at the beginning of the export data instead of printing the export data to stdout. With the new types package, the existing in-progress typechecker package is deprecated. I will delete it once all functionality has been brought over. R=eds, rog, rsc CC=golang-dev https://golang.org/cl/4314054
-
- 06 Apr, 2011 3 commits
-
-
Russ Cox authored
TBR=r CC=golang-dev https://golang.org/cl/4378042
-
Russ Cox authored
Not committed to this but it sure makes the output easier to skim. With this CL: $ make install runtime install sync/atomic install sync install unicode install utf16 install syscall install os ... install ../cmd/govet install ../cmd/goyacc install ../cmd/hgpatch $ make test test archive/tar test archive/zip test asn1 test big test bufio ... test path test path/filepath TEST FAIL reflect gotest rm -f _test/reflect.a 6g -o _gotest_.6 deepequal.go type.go value.go rm -f _test/reflect.a gopack grc _test/reflect.a _gotest_.6 all_test.go:210: invalid type assertion: reflect.NewValue(tt.i).(*StructValue) (non-interface type reflect.Value on left) all_test.go:217: cannot type switch on non-interface value v (type reflect.Value) all_test.go:218: undefined: IntValue all_test.go:221: cannot use 132 (type int) as type reflect.Value in function argument all_test.go:223: cannot use 8 (type int) as type reflect.Value in function argument all_test.go:225: cannot use 16 (type int) as type reflect.Value in function argument all_test.go:227: cannot use 32 (type int) as type reflect.Value in function argument all_test.go:229: cannot use 64 (type int) as type reflect.Value in function argument all_test.go:231: undefined: UintValue all_test.go:234: cannot use 132 (type int) as type reflect.Value in function argument all_test.go:234: too many errors gotest: "/Users/rsc/g/go/bin/6g -I _test -o _xtest_.6 all_test.go tostring_test.go" failed: exit status 1 make[1]: *** [test] Error 2 make: *** [reflect.test] Error 1 R=r, r2 CC=golang-dev https://golang.org/cl/4343046
-
Alex Brainman authored
Fixes #1107. R=golang-dev, dsymonds CC=golang-dev https://golang.org/cl/4374041
-