Commit b47cef39 authored by Russ Cox's avatar Russ Cox

path/filepath: note that SplitList is different from strings.Split

R=golang-dev, r, bradfitz, gustavo
CC=golang-dev
https://golang.org/cl/5712044
parent d0d251f8
......@@ -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{}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment