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:
parent
d77338eabe
commit
f321e15db8
2
new.go
2
new.go
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user