Go lang和Revel Web框架不起作用

时间:2015-01-14 12:22:40

标签: web go frameworks revel

我正在尝试在WINDOWS 7中使用Revel Web框架并遇到问题。 只需按照[快速入门]页面[http://revel.github.io/]

中的步骤操作即可

C:\设备>去获取github.com/revel/cmd/revel

C:\设备>狂欢运行github.com/revel/revel/samples/chat

我的GOROOT和GOPATH配置是:

GOPATH = / Users / nery / DEV / go

GOROOT = / soft / go

我也试过

GOPATH = c:\ Users \ nery \ DEV \ go

GOROOT = c:\ soft \ go

然而,在浏览器(Chrome)中没有响应,并且服务器生成以下错误输出:

2015/01/14 10:07:56 harness.go:165:聆听:9000
2015/01/14 10:07:58 reflect.go:775:出乎意料!代码路径不在GOPATH:\ sof中 牛逼\去的\ src / github.com \陶醉\陶醉\样本\聊天/应用
2015/01/14 10:07:58 reflect.go:94:跳过代码路径\ soft \ go \ src / github.com \ re VEL \陶醉\样本\聊天/应用
2015/01/14 10:07:58 reflect.go:775:出乎意料!代码路径不在GOPATH:\ sof中 牛逼\去的\ src \ github.com \陶醉\陶醉\ \模块静态/应用
2015/01/14 10:07:58 reflect.go:94:跳过代码路径\ soft \ go \ src \ github.com \ re VEL \陶醉\模块\静态/应用
2015/01/14 10:07:58 reflect.go:775:出乎意料!代码路径不在GOPATH:\ sof中 吨\去\ SRC \ github.com \陶醉\陶醉\模块\的TestRunner /应用
2015/01/14 10:07:58 reflect.go:94:跳过代码路径\ soft \ go \ src \ github.com \ re VEL \陶醉\模块\的TestRunner /应用
2015/01/14 10:07:58 reflect.go:775:出乎意料!代码路径不在GOPATH:\ sof中 牛逼\去的\ src / github.com \陶醉\陶醉\样本\聊天/测试
2015/01/14 10:07:58 reflect.go:94:跳过代码路径\ soft \ go \ src / github.com \ re VEL \陶醉\样本\聊天/测试
2015/01/14 10:07:58 server.go:1775:http:panic serving 127.0.0.1:50903:运行时  错误:无效的内存地址或无指针取消引用
goroutine 26 [running]:
净/ http.func·011()
        c:/go/src/net/http/server.go:1130 + 0xc2
github.com/revel/revel/harness.(*SourceInfo).ControllerSpecs(0x0,0x0,0x0,0x0) 。 。

有没有人有任何可以帮助我的提示? 感谢。

0 个答案:

没有答案