beego / samples

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

bee run错误修复 #37

Closed eiDear closed 3 years ago

eiDear commented 4 years ago

如果要直接运行,需要将samples clone到$GOPATH/github.com/beego/下。否则在运行的时候会找不到各种controller:提示到$GOPATH/github.com/beego/samples/todo/controller和$GOROOT/github.com/beego/samples/todo/controller。

Jfef commented 3 years ago

说实话实例代码,又不用做包为什么要放入github.com下面?

image 在golang 中使用 mod 依赖管理下,就行了

eiDear commented 3 years ago

OK. maybe this is more reasonable.