找不到模板文件
Can't find templatefile
我在IdeaProject中有一个beego项目。结构是这样的:
MathApp
├── conf
│ └── app.conf
├── main.go
├── main_test.go
└── views
├── invalid-route.html
└── result.html
但是,它显示错误can't find templatefile in the path:views/result.html
。我已将 gopath
设置为 C:/gopath
。
有什么建议吗?
您可以在 template.go
中查看产生此错误的代码
This issue 提及:
Please use the bee run
, as go get
install the binary into the gopath/bin
, while the static file still in the gopath/src/myproject
.
我在IdeaProject中有一个beego项目。结构是这样的:
MathApp
├── conf
│ └── app.conf
├── main.go
├── main_test.go
└── views
├── invalid-route.html
└── result.html
但是,它显示错误can't find templatefile in the path:views/result.html
。我已将 gopath
设置为 C:/gopath
。
有什么建议吗?
您可以在 template.go
This issue 提及:
Please use the
bee run
, asgo get
install the binary into thegopath/bin
, while the static file still in thegopath/src/myproject
.