golong beego 报错
wwwql 2016-11-09 04:55:26 beego,报错,是什么原因,谢谢
C:/go/bin/go.exe build -i [C:/go/src/hello/controllers]
can't load package: c:\go\src\hello\controllers\default.go:4:2: non-standard import "github.com/astaxie/beego" in standard package "hello/controllers"
错误: 进程退出代码 1.
源码:
package controllers
import (
"github.com/astaxie/beego"
)
type MainController struct {
beego.Controller
}
func (c *MainController) Get() {
c.Data["Website"] = "beego.me"
c.Data["Email"] = "astaxie@gmail.com"
c.TplName = "index.tpl"
}