aboutsummaryrefslogtreecommitdiff
path: root/src/pkg/path
AgeCommit message (Collapse)Author
2012-03-28path/filepath: correct comment in EvalSymlinksAlex Brainman
R=golang-dev, r CC=golang-dev, hcwfrichter https://golang.org/cl/5934046
2012-03-27path/filepath: use windows GetShortPathName api to force GetLongPathName to ↵Alex Brainman
do its work R=golang-dev, rsc CC=golang-dev https://golang.org/cl/5928043
2012-03-27path/filepath: convert drive letter to upper case in windows EvalSymlinksAlex Brainman
Fixes #3347. R=golang-dev, aram, r, rsc CC=golang-dev https://golang.org/cl/5918043
2012-03-23path/filepath: windows drive letter cannot be a digitAlex Brainman
R=golang-dev, r CC=golang-dev, mattn.jp https://golang.org/cl/5885056
2012-03-19path/filepath: implement Match and Glob on windowsAlex Brainman
As discussed on golang-dev, windows will use "\" as path separator. No escaping allowed. R=golang-dev, r, mattn.jp, rsc, rogpeppe, bsiegert, r CC=golang-dev https://golang.org/cl/5825044
2012-03-08all: gofmt -w -s src miscRobert Griesemer
R=golang-dev, rsc CC=golang-dev https://golang.org/cl/5781058
2012-03-08path/filepath: retrieve real file name in windows EvalSymlinksAlex Brainman
R=golang-dev, rsc CC=golang-dev https://golang.org/cl/5756049
2012-03-07os: fix SameFile to work for directories on windowsAlex Brainman
R=golang-dev, r CC=golang-dev https://golang.org/cl/5756064
2012-03-07path/filepath: disable AbsTest on windowsRob Pike
SameFile has a bug. R=golang-dev TBR=rsc CC=golang-dev https://golang.org/cl/5754055
2012-03-07path/filepath/path_test.go: repair and enable TestAbsRob Pike
R=golang-dev, rsc CC=golang-dev https://golang.org/cl/5759051
2012-02-29path/filepath: steer people away from HasPrefixRuss Cox
The strikes against it are: 1. It does not take path boundaries into account. 2. It assumes that Windows==case-insensitive file system and non-Windows==case-sensitive file system, neither of which is always true. 3. Comparing ToLower against ToLower is not a correct implementation of a case-insensitive string comparison. 4. If it returns true on Windows you still don't know how long the matching prefix is in bytes, so you can't compute what the suffix is. R=golang-dev, r, dsymonds, r CC=golang-dev https://golang.org/cl/5712045
2012-02-29path/filepath: note that SplitList is different from strings.SplitRuss Cox
R=golang-dev, r, bradfitz, gustavo CC=golang-dev https://golang.org/cl/5712044
2012-02-17path/filepath: fix test on darwinRob Pike
/tmp being itself a symlink causes problems for the test, so use / as the absolute path. R=golang-dev, gri CC=golang-dev https://golang.org/cl/5675070
2012-02-16path, path/filepath: polish documentation.Rémy Oudompheng
Fixes #2950. Fixes #2951. R=golang-dev, r CC=golang-dev, remy https://golang.org/cl/5672044
2012-02-16godoc: make example code more readable with new comment conventionAndrew Gerrand
go/doc: move Examples to go/ast cmd/go: use go/doc to read examples src/pkg: update examples to use new convention This is to make whole file examples more readable. When presented as a complete function, preceding an Example with its output is confusing. The new convention is to put the expected output in the final comment of the example, preceded by the string "output:" (case insensitive). An idiomatic example looks like this: // This example demonstrates Foo by doing bar and quux. func ExampleFoo() { // example body that does bar and quux // Output: // example output } R=rsc, gri CC=golang-dev https://golang.org/cl/5673053
2012-02-13all: update 'gotest' to 'go test'Shenghou Ma
R=golang-dev, rsc CC=golang-dev https://golang.org/cl/5645099
2012-02-07path/filepath: repair and simplify the symlink testRob Pike
I hate symlinks. Fixes #2787. R=golang-dev, dsymonds, rsc CC=golang-dev https://golang.org/cl/5638043
2012-02-04path/filepath: disable broken testsRuss Cox
TBR=golang-dev CC=golang-dev https://golang.org/cl/5625050
2012-02-03os: turn FileStat.Sys into a method on FileInfoGustavo Niemeyer
This reduces the overhead necessary to work with OS-specific file details, hides the implementation of FileStat, and preserves the implementation-specific nature of Sys. Expressions such as: stat.(*os.FileInfo).Sys.(*syscall.Stat_t).Uid fi1.(*os.FileStat).SameFile(fi2.(*os.FileStat)) Are now spelled as:: stat.Sys().(*syscall.Stat_t).Uid os.SameFile(fi1, fi2) R=cw, bradfitz, rsc CC=golang-dev https://golang.org/cl/5448079
2012-01-30build: remove Make.pkg, Make.toolRuss Cox
Consequently, remove many package Makefiles, and shorten the few that remain. gomake becomes 'go tool make'. Turn off test phases of run.bash that do not work, flagged with $BROKEN. Future CLs will restore these, but this seemed like a big enough CL already. R=golang-dev, r CC=golang-dev https://golang.org/cl/5601057
2012-01-25path/filepath: fix testRob Pike
If there's an error, sometimes you need to stop. Part of issue 2787. R=golang-dev, adg CC=golang-dev https://golang.org/cl/5570068
2012-01-19path: added examplesSanjay Menakuru
R=rsc, adg CC=golang-dev https://golang.org/cl/5503089
2011-12-23path/filepath: implement Base and Dir for windowsAlex Brainman
R=golang-dev, r CC=golang-dev https://golang.org/cl/5501069
2011-12-22path: DirRob Pike
There was Base but not Dir, so fill in the gap. R=golang-dev, rsc CC=golang-dev https://golang.org/cl/5504076
2011-12-22path/filepath: DirRob Pike
There was Base but not Dir, so fill in the gap. R=n13m3y3r, r, rsc, gustavo CC=golang-dev https://golang.org/cl/5503067
2011-12-21path/filepath.Rel: document that the returned path is always relativeRob Pike
Fixes #2593. R=rsc, alex.brainman, n13m3y3r CC=golang-dev https://golang.org/cl/5500052
2011-12-21crypto/mime/net/time: add netbsd to +build tagsJoel Sing
R=golang-dev, mikioh.mikioh CC=golang-dev https://golang.org/cl/5501052
2011-12-12build: Changes to the build infrastructure for NetBSD.Christopher Nielsen
R=golang-dev, rsc CC=golang-dev https://golang.org/cl/5476048
2011-12-02gofmt -s misc srcRuss Cox
R=golang-dev, bradfitz, gri CC=golang-dev https://golang.org/cl/5451079
2011-11-30os: new FileInfo, FileMode types + update treeRuss Cox
R=golang-dev, r, r, gri, bradfitz, iant, iant, nigeltao, n13m3y3r CC=golang-dev https://golang.org/cl/5416060
2011-11-27filepath/path: fix Rel buffer sizingGustavo Niemeyer
Fixes #2493. R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/5433079
2011-11-08renaming_3: gofix -r go1pkgrename src/pkg/[m-z]*Rob Pike
R=rsc CC=golang-dev https://golang.org/cl/5345045
2011-11-02all: sort importsRuss Cox
R=golang-dev, r CC=golang-dev https://golang.org/cl/5319072
2011-11-01src/pkg/[n-z]*: gofix -r error -force=errorRuss Cox
R=golang-dev, bsiegert, iant CC=golang-dev https://golang.org/cl/5294074
2011-10-25cgo, goyacc, go/build, html, http, path, path/filepath, testing/quick, test: ↵Russ Cox
use rune Nothing terribly interesting here. R=golang-dev, bradfitz, gri, r CC=golang-dev https://golang.org/cl/5300043
2011-10-04path/filepath: added Rel as the complement of AbsGustavo Niemeyer
R=golang-dev, rsc, gustavo, r, borman CC=golang-dev https://golang.org/cl/4981049
2011-09-16filepath: fix Glob to return no error on nonmatching patternsMichael Shields
filepath.Glob is documented to return nil if no files match and an error only if the pattern is invalid. This change fixes it to work as documented and adds a regression test. R=golang-dev, r CC=golang-dev https://golang.org/cl/5040045
2011-09-15build: add build comments to core packagesRuss Cox
The go/build package already recognizes system-specific file names like mycode_darwin.go mycode_darwin_386.go mycode_386.s However, it is also common to write files that apply to multiple architectures, so a recent CL added to go/build the ability to process comments listing a set of conditions for building. For example: // +build darwin freebsd openbsd/386 says that this file should be compiled only on OS X, FreeBSD, or 32-bit x86 OpenBSD systems. These conventions are not yet documented (hence this long CL description). This CL adds build comments to the multi-system files in the core library, a step toward making it possible to use go/build to build them. With this change go/build can handle crypto/rand, exec, net, path/filepath, os/user, and time. os and syscall need additional adjustments. R=golang-dev, r, gri, r, gustavo CC=golang-dev https://golang.org/cl/5011046
2011-09-14path/filepath: document that Walk sorts its outputRob Pike
R=golang-dev, cw CC=golang-dev https://golang.org/cl/5004045
2011-09-13path/filepath: new signature for WalkRob Pike
This one uses a closure than an interface, and is much simpler to use. It also enables a called function to return an error and (possibly) halt processing. Fixes #2237. R=golang-dev, gri, rsc, r, cw, n13m3y3r CC=golang-dev https://golang.org/cl/5014043
2011-09-12path/filepath: fix Visitor docGustavo Niemeyer
The path is not in fact relative to the root, but joined to it. R=golang-dev, adg, rsc, gustavo CC=golang-dev https://golang.org/cl/4977059
2011-09-09path/filepath: make UNC file names workYasuhiro Matsumoto
Fixes #2201 R=golang-dev, r, rsc, alex.brainman, robert.hencke, jp CC=golang-dev https://golang.org/cl/4950051
2011-09-07undo CL 4964067 / 661cb84cc6f0Robert Griesemer
API change. Needs further reflection. ««« original CL description path/filepath: Simplify Walk interface The last argument of filepath.Walk was removed, and the Visitor interface now contains an Error method that is called on errors. Fixes #2237. R=golang-dev, gri, r CC=golang-dev https://golang.org/cl/4964067 »»» R=r CC=golang-dev https://golang.org/cl/4974065
2011-09-07path/filepath: Simplify Walk interfaceGustavo Niemeyer
The last argument of filepath.Walk was removed, and the Visitor interface now contains an Error method that is called on errors. Fixes #2237. R=golang-dev, gri, r CC=golang-dev https://golang.org/cl/4964067
2011-09-06cleanup: gofmt -s -w src miscRobert Griesemer
R=r CC=golang-dev https://golang.org/cl/4984052
2011-08-12crypto, exec, path, time: add support for OpenBSDJoel Sing
R=golang-dev, r CC=golang-dev https://golang.org/cl/4837048
2011-07-19go/build: fixes for windows pathsAlex Brainman
R=golang-dev, mattn.jp, adg CC=golang-dev https://golang.org/cl/4746047
2011-07-18path/filepath: fixes for windows pathsAlex Brainman
- Clean and IsAbs to handle paths with drive letter properly. - Clean to replace / with \. R=golang-dev, adg CC=golang-dev, mattn.jp https://golang.org/cl/4758051
2011-07-13filepath/path: fix a commentRobert Griesemer
R=bradfitz CC=golang-dev https://golang.org/cl/4704047
2011-07-08sort: rename helpers: s/Sort// in sort.Sort[Float64s|Ints|Strings]Andrew Gerrand
Includes 'sorthelpers' gofix and updates to tree. R=golang-dev, gri CC=golang-dev https://golang.org/cl/4631098