mirror of
https://github.com/beego/bee.git
synced 2024-11-24 13:30:53 +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 {
|
for _, wg := range wgopath {
|
||||||
wg = path.Join(wg, "src")
|
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
|
haspath = true
|
||||||
appsrcpath = wg
|
appsrcpath = wg
|
||||||
break
|
break
|
||||||
|
Loading…
Reference in New Issue
Block a user