package controllers
import (
"github.com/astaxie/beego"
"github.com/astaxie/beego/context"
)
type MainController struct {
beego.Controller
}
func (this *MainController) Get() {
}
func a(ctx *context.Context) {
}
panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xb code=0x1 addr=0x0 pc=0x5a7d2]
goroutine 16 [running]:
runtime.panic(0x5022a0, 0x84f544)
/usr/local/go/src/pkg/runtime/panic.c:279 +0xf5
github.com/astaxie/beego.parserPkg(0xc2080a9080, 0x2c, 0x5dfbf0, 0x13, 0x0, 0x0)
/Users/dongjian/DJGO/src/github.com/astaxie/beego/parser.go:69 +0x612
github.com/astaxie/beego.(_ControllerRegistor).Include(0xc20809a060, 0xc208001ba0, 0x1, 0x1)
/Users/dongjian/DJGO/src/github.com/astaxie/beego/router.go:193 +0x5a3
github.com/astaxie/beego.(_Namespace).Include(0xc20809a080, 0xc208001ba0, 0x1, 0x1, 0x0)
/Users/dongjian/DJGO/src/github.com/astaxie/beego/namespace.go:182 +0x49
github.com/astaxie/beego.func·008(0xc20809a080)
/Users/dongjian/DJGO/src/github.com/astaxie/beego/namespace.go:299 +0x39
github.com/astaxie/beego.NewNamespace(0x565f30, 0x5, 0xc208030090, 0x1, 0x1, 0x4eb220)
/Users/dongjian/DJGO/src/github.com/astaxie/beego/namespace.go:38 +0x114
github.com/astaxie/beego.func·020(0xc20809a040)
/Users/dongjian/DJGO/src/github.com/astaxie/beego/namespace.go:383 +0x42
github.com/astaxie/beego.NewNamespace(0x565ff0, 0x3, 0x991ed8, 0x1, 0x1, 0xc20809a000)
/Users/dongjian/DJGO/src/github.com/astaxie/beego/namespace.go:38 +0x114
tianyin/routers.init·2()
/Users/dongjian/DJGO/src/tianyin/routers/router.go:21 +0x249
tianyin/routers.init()
/Users/dongjian/DJGO/src/tianyin/routers/router.go:23 +0x55
main.init()
/Users/dongjian/DJGO/src/tianyin/main.go:38 +0x46
goroutine 19 [finalizer wait]:
runtime.park(0x14ec0, 0x8559b0, 0x853c49)
/usr/local/go/src/pkg/runtime/proc.c:1369 +0x89
runtime.parkunlock(0x8559b0, 0x853c49)
/usr/local/go/src/pkg/runtime/proc.c:1385 +0x3b
runfinq()
/usr/local/go/src/pkg/runtime/mgc0.c:2644 +0xcf
runtime.goexit()
/usr/local/go/src/pkg/runtime/proc.c:1445
goroutine 20 [chan receive]:
github.com/astaxie/beego/logs.(*BeeLogger).startLogger(0xc208023bf0)
/Users/dongjian/DJGO/src/github.com/astaxie/beego/logs/log.go:158 +0x6d
created by github.com/astaxie/beego/logs.NewLogger
/Users/dongjian/DJGO/src/github.com/astaxie/beego/logs/log.go:80 +0x92
14-07-18 10:15:22 [SKIP] "/Users/dongjian/DJGO/src/tianyin/routers/router.go": MODIFY|ATTRIB