1
0
mirror of https://github.com/beego/bee.git synced 2024-12-25 04:30:50 +00:00

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

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