Closed eiDear closed 3 years ago
如果要直接运行,需要将samples clone到$GOPATH/github.com/beego/下。否则在运行的时候会找不到各种controller:提示到$GOPATH/github.com/beego/samples/todo/controller和$GOROOT/github.com/beego/samples/todo/controller。
说实话实例代码,又不用做包为什么要放入github.com下面?
在golang 中使用 mod 依赖管理下,就行了
OK. maybe this is more reasonable.
如果要直接运行,需要将samples clone到$GOPATH/github.com/beego/下。否则在运行的时候会找不到各种controller:提示到$GOPATH/github.com/beego/samples/todo/controller和$GOROOT/github.com/beego/samples/todo/controller。