diff options
Diffstat (limited to 'src/pkg/path/filepath/path_unix.go')
| -rw-r--r-- | src/pkg/path/filepath/path_unix.go | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/pkg/path/filepath/path_unix.go b/src/pkg/path/filepath/path_unix.go index ea555fc0e..b2a4151c1 100644 --- a/src/pkg/path/filepath/path_unix.go +++ b/src/pkg/path/filepath/path_unix.go @@ -11,8 +11,13 @@ func IsAbs(path string) bool { return 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) +} |
