mirror of
https://github.com/golang/go
synced 2024-11-22 03:34:40 -07:00
path/filepath: note that SplitList is different from strings.Split
R=golang-dev, r, bradfitz, gustavo CC=golang-dev https://golang.org/cl/5712044
This commit is contained in:
parent
d0d251f858
commit
b47cef394b
@ -139,6 +139,7 @@ func FromSlash(path string) string {
|
||||
|
||||
// SplitList splits a list of paths joined by the OS-specific ListSeparator,
|
||||
// usually found in PATH or GOPATH environment variables.
|
||||
// Unlike strings.Split, SplitList returns an empty slice when passed an empty string.
|
||||
func SplitList(path string) []string {
|
||||
if path == "" {
|
||||
return []string{}
|
||||
|
Loading…
Reference in New Issue
Block a user