beego / samples

An open source project for beego sample applications.
Apache License 2.0
914 stars 1.25k forks source link

运行起来报 Failed to build the application: WebIM.go:21:2: cannot find package "github.com/beego/samples/WebIM/routers" in any of:这个错 #26

Open douhaopeng opened 6 years ago

douhaopeng commented 6 years ago

我改了一下routers包的地址 改为github.com/beego/samples/tree/master/WebIM/routers 发现还是不好使 问一下大佬们该如何解决

fancyzhou commented 6 years ago

同问,我也遇到这个问题了

839891627 commented 6 years ago

将所有import报错的地方,例如 "github.com/beego/samples/WebIM/controllers"改成 "samples/WebIM/controllers" 即可

WilliamHrq commented 6 years ago

下载的zip解压之后文件夹名字是"Samples-Master",而import里是".../samples/...",所以把你解压的文件更名为"Samples"再把前面的"github.com/beego/“删除即可。

douhaopeng commented 6 years ago

Thanks for your help

coding-now commented 5 years ago

修改下GOPATH 的配置:把源码文件目录追加上再试试

mini443 commented 4 years ago

批量替换下代码,github.com/beego/samples/WebIM/ 改为 samples/WebIM ,路径问题