aboutsummaryrefslogtreecommitdiff
path: root/src/pkg/path
AgeCommit message (Collapse)Author
2011-04-04filepath: new Abs functionGustavo Niemeyer
R=golang-dev, rsc1, peterGo, bsiegert, r, mattn CC=golang-dev https://golang.org/cl/4271057
2011-04-04path/filepath.Glob: add an error return.Rob Pike
The error will only occur for invalid patterns, but without this error path there is no way to know that Glob has failed due to an invalid pattern. R=rsc CC=golang-dev https://golang.org/cl/4346044
2011-04-03path/filepath: add support for plan9Andrey Mirtchovski
R=paulzhol, ality, r, fhs CC=golang-dev https://golang.org/cl/4316054
2011-04-01path/filepath.Glob: don't drop known matches on error.Rob Pike
Fixes #1610. R=rsc CC=golang-dev https://golang.org/cl/4355042
2011-03-21path/filepath: fix TestEvalSymlinks when run under symlinked GOROOTAndrew Gerrand
Fixes #1622. R=rsc, bradfitzgo CC=golang-dev https://golang.org/cl/4287063
2011-03-18filepath: do not run TestEvalSymlinks on WindowsAlex Brainman
R=golang-dev, rsc1 CC=adg, golang-dev https://golang.org/cl/4274069
2011-03-17path/filepath: add EvalSymlinks functionAndrew Gerrand
R=rsc, niemeyer, r2, rog, iant2, r CC=golang-dev https://golang.org/cl/4235060
2011-03-17path: work for windows.Yasuhiro Matsumoto
R=brainman, rsc, rsc1 CC=golang-dev https://golang.org/cl/4249064
2011-03-07path/filepath: disable test on windows to fix buildAlex Brainman
R=golang-dev, rsc1 CC=golang-dev https://golang.org/cl/4235054
2011-03-06path/filepath: new OS-specific path supportGustavo Niemeyer
The path package now contains only functions which deal with slashed paths, sensible for any OS when dealing with network paths or URLs. OS-specific functionality has been moved into the new path/filepath package. This also includes fixes for godoc, goinstall and other packages which were mixing slashed and OS-specific paths. R=rsc, gri, mattn, brainman CC=golang-dev https://golang.org/cl/4252044
2011-01-31replace non-blocking send, receive syntax with selectRuss Cox
R=golang-dev, nigeltao, niemeyer, r CC=golang-dev https://golang.org/cl/4079053
2010-12-15remove naclRuss Cox
The recent linker changes broke NaCl support a month ago, and there are no known users of it. The NaCl code can always be recovered from the repository history. R=adg, r CC=golang-dev https://golang.org/cl/3671042
2010-12-08path: fix printf glitch in testRob Pike
R=rh, gri CC=golang-dev https://golang.org/cl/3514041
2010-12-07throughout: fix broken calls to Printf etc.Rob Pike
I have written a tool to verify Printf calls, and although it's not ready to be reviewed yet it's already uncovered a spate of problems in the repository. I'm sending this CL to break the changes into pieces; as the tool improves it will find more, I'm sure. R=rsc CC=golang-dev https://golang.org/cl/3427043
2010-11-30path: Windows support for SplitBenny Siegert
Make Split work on backslashes as well as on slashes under Windows and support the "C:filename" special case. Also add corresponding tests. R=r, rsc, PeterGo, r2, brainman CC=golang-dev https://golang.org/cl/3008041
2010-11-10path: Fix Glob when it finds a file in directory position.Ian Lance Taylor
When searching a list of directories, the files which match the pattern are accumulated in a slice. If the glob has a wildcard for the directory, and the wildcard matches a file rather than a directory, then the files found so far are discarded. E.g., path.Glob("*/x") in a directory which contains both files and subdirectories. This patch avoids discarding matches found so far when a file is found. R=r CC=bsiegert, golang-dev https://golang.org/cl/3015042
2010-11-05path: add GlobBenny Siegert
As discussed in http://groups.google.com/group/golang-dev/browse_thread/thread/926b7d550d98ec9e, add a simple "path expander" function, which returns all the files matching the given pattern. This function is called Glob after glob(3) in libc. Also add a convenience function, hasMeta, that checks whether a string contains one of the characters which are specially handled by Match. R=rsc, r, r2 CC=golang-dev https://golang.org/cl/2476041
2010-10-22gofmt -s -w src miscRobert Griesemer
R=r, rsc CC=golang-dev https://golang.org/cl/2662041
2010-09-24... changesRuss Cox
R=golang-dev, gri CC=golang-dev https://golang.org/cl/2273042
2010-09-23tests: fix printsRob Pike
- delete unnecessary newlines - make sure formatted prints call the formatting routines R=adg CC=golang-dev https://golang.org/cl/2225046
2010-09-09path: add IsAbsIvan Krasin
R=rsc, imkrasin, r CC=golang-dev https://golang.org/cl/1969042
2010-09-09path: fix typo in path.VisitorAndrew Gerrand
Fixes #1088. R=gri, iant CC=golang-dev https://golang.org/cl/2157043
2010-08-18build: no required environment variablesRuss Cox
R=adg, r, PeterGo CC=golang-dev https://golang.org/cl/1942044
2010-08-05path: fix comment for Split()Alex Brainman
R=golang-dev CC=golang-dev https://golang.org/cl/1905050
2010-06-09add path.Base, analogous to Unix basenameRob Pike
R=rsc CC=golang-dev https://golang.org/cl/1633042
2010-04-09rename os.Dir to os.FileInfoRob Pike
R=rsc CC=golang-dev https://golang.org/cl/902042
2010-03-11math, path: minor comment fixesRobert Griesemer
R=r CC=golang-dev https://golang.org/cl/444043
2010-02-25strings: delete Runes, BytesRuss Cox
gofmt -w -r 'strings.Bytes(a) -> []byte(a)' src/cmd src/pkg test/bench gofmt -w -r 'strings.Runes(a) -> []int(a)' src/cmd src/pkg test/bench delete unused imports R=r CC=golang-dev https://golang.org/cl/224062
2010-02-25path: Fix bug in Match with non-greedy starsKevin Ballard
path.Match() errors out when testing "*x" against "xxx" because it matches the star non-greedily. Ensure that the last chunk consumes the rest of the name. R=r, rsc CC=golang-dev https://golang.org/cl/223050
2010-02-24path: add MatchRuss Cox
R=eridius, r, rog CC=golang-dev https://golang.org/cl/217088
2010-02-05path: make Join variadicStephen Weinberg
R=rsc, r CC=golang-dev https://golang.org/cl/198049
2009-12-151) Change default gofmt default settings forRobert Griesemer
parsing and printing to new syntax. Use -oldparser to parse the old syntax, use -oldprinter to print the old syntax. 2) Change default gofmt formatting settings to use tabs for indentation only and to use spaces for alignment. This will make the code alignment insensitive to an editor's tabwidth. Use -spaces=false to use tabs for alignment. 3) Manually changed src/exp/parser/parser_test.go so that it doesn't try to parse the parser's source files using the old syntax (they have new syntax now). 4) gofmt -w src misc test/bench 4th set of files. R=rsc CC=golang-dev https://golang.org/cl/180049
2009-12-02move ReadFile, WriteFile, and ReadDir into a separate io/ioutil package.Rob Pike
this breaks the dependency of package io on package bytes. R=rsc CC=golang-dev https://golang.org/cl/163085
2009-11-23go: makes it build for the case $GOROOT has whitespacesSergio Luis O. B. Correia
the bash scripts and makefiles for building go didn't take into account the fact $GOROOT / $GOBIN could both be directories containing whitespaces, and was not possible to build it in such a situation. this commit adjusts the various makefiles/scripts to make it aware of that possibility, and now it builds successfully when using a path with whitespaces as well. Fixes #115. R=rsc, dsymonds1 https://golang.org/cl/157067
2009-11-20gofmt -r 'α[β:len(α)] -> α[β:]' -w src/cmd src/pkgRuss Cox
R=r, gri CC=golang-dev https://golang.org/cl/156115
2009-11-13path.TestWalk: disable error case if rootRuss Cox
(chmod 0 doesn't cause errors for root) Fixes #22. R=gri https://golang.org/cl/152120
2009-11-09- replaced gofmt expression formatting algorithm withRobert Griesemer
rsc's algorithm - applied gofmt -w misc src - partial CL (last chunk) R=rsc, r http://go/go-review/1024041
2009-11-09remove semis after statements in one-statement statement listsRobert Griesemer
R=rsc, r http://go/go-review/1025029
2009-11-06- fine-tuning of one-line func heuristic (nodes.go)Robert Griesemer
- enabled for function declarations (not just function literals) - applied gofmt -w $GOROOT/src (look for instance at src/pkg/debug/elf/elf.go) R=r, rsc CC=go-dev http://go/go-review/1026006
2009-11-05gofmt'ed various stragglersRobert Griesemer
R=rsc http://go/go-review/1022002
2009-10-27files that are okay from the last gofmt roundRuss Cox
R=gri http://go/go-review/1015011
2009-10-19directory tree walk w/ visitor per rsc's suggestionRobert Griesemer
R=rsc,r DELTA=193 (191 added, 0 deleted, 2 changed) OCL=35849 CL=35877
2009-10-08more lgtm files from gofmtRuss Cox
R=gri OCL=35485 CL=35488
2009-09-15more "declared and not used".Russ Cox
the last round omitted := range and only checked 1 out of N vars in a multi-var := R=r OCL=34624 CL=34638
2009-09-14fix "declared and not used" errors in non-test code.Russ Cox
R=r DELTA=112 (6 added, 57 deleted, 49 changed) OCL=34610 CL=34610
2009-08-12convert non-low-level non-google pkg codeRuss Cox
to whole-package compilation. R=r OCL=33070 CL=33101
2009-06-29io.StringBytes -> strings.BytesRuss Cox
io.ByteBuffer -> bytes.Buffer left io.ByteBuffer stub around for now, for protocol compiler. R=r OCL=30861 CL=30872
2009-06-09mv src/lib to src/pkgRob Pike
tests: all.bash passes, gobuild still works, godoc still works. R=rsc OCL=30096 CL=30102