diff options
Diffstat (limited to 'libgo/go/path/filepath/path_plan9.go')
-rw-r--r-- | libgo/go/path/filepath/path_plan9.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libgo/go/path/filepath/path_plan9.go b/libgo/go/path/filepath/path_plan9.go index 0c938d8..12e85aa 100644 --- a/libgo/go/path/filepath/path_plan9.go +++ b/libgo/go/path/filepath/path_plan9.go @@ -21,3 +21,10 @@ func volumeNameLen(path string) int { func HasPrefix(p, prefix string) bool { return strings.HasPrefix(p, prefix) } + +func splitList(path string) []string { + if path == "" { + return []string{} + } + return strings.Split(path, string(ListSeparator)) +} |