diff options
| author | Alex Brainman <alex.brainman@gmail.com> | 2011-07-19 14:02:23 +1000 |
|---|---|---|
| committer | Alex Brainman <alex.brainman@gmail.com> | 2011-07-19 14:02:23 +1000 |
| commit | 42effdf096d9c04aaacfdc48853937e9cbad2c09 (patch) | |
| tree | e3662f5f455528191f034cb76e712266b8521134 /src/pkg/path/filepath/path_plan9.go | |
| parent | 98f5fc5e866886a8d4db81581345071b2a8dea9f (diff) | |
| download | go-42effdf096d9c04aaacfdc48853937e9cbad2c09.tar.xz | |
go/build: fixes for windows paths
R=golang-dev, mattn.jp, adg
CC=golang-dev
https://golang.org/cl/4746047
Diffstat (limited to 'src/pkg/path/filepath/path_plan9.go')
| -rw-r--r-- | src/pkg/path/filepath/path_plan9.go | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/pkg/path/filepath/path_plan9.go b/src/pkg/path/filepath/path_plan9.go index 47990e0fe0..17b873f1a9 100644 --- a/src/pkg/path/filepath/path_plan9.go +++ b/src/pkg/path/filepath/path_plan9.go @@ -11,8 +11,13 @@ func IsAbs(path string) bool { return strings.HasPrefix(path, "/") || strings.HasPrefix(path, "#") } -// volumeName returns the leading volume name on Windows. +// VolumeName returns the leading volume name on Windows. // It returns "" elsewhere -func volumeName(path string) string { +func VolumeName(path string) string { return "" } + +// HasPrefix tests whether the path p begins with prefix. +func HasPrefix(p, prefix string) bool { + return strings.HasPrefix(p, prefix) +} |
