Go docs advise to use strings.HasPrefix.

This commit is contained in:
Philip Nelson 2013-08-11 17:43:00 -07:00
parent d77338eabe
commit f321e15db8
1 changed files with 1 additions and 1 deletions

2
new.go
View File

@ -58,7 +58,7 @@ func createApp(cmd *Command, args []string) {
for _, wg := range wgopath {
wg = path.Join(wg, "src")
if path.HasPrefix(strings.ToLower(curpath), strings.ToLower(wg)) {
if strings.HasPrefix(strings.ToLower(curpath), strings.ToLower(wg)) {
haspath = true
appsrcpath = wg
break