html - 为什么 Revel Web 框架教程应用程序不起作用

标签 html go revel

我是Go初学者,想使用revel web框架开发web应用。

我按照教程从以下位置安装和测试 revel: http://revel.github.io/tutorial/index.html

但是当我运行 revel run myapp 命令并转到 http://localhost:9000/ 时, 该页面显示一条错误消息:

Server Error: Template Execution Error (in app/index.html:23): "footer.html" is an incomplete or empty template

Additionally, an error occurred when rendering the error page: html/template:errors/500.html: "errors/500.html" is an incomplete or empty template

我试图删除句子:

{{ template "footer.html" .}}

现在它可以工作了,但这并不是问题的真正解决方案。

以前有其他人遇到过这个问题吗?

最佳答案

您需要安装更新的 Go 版本 1.2(不是 1.1.2)。
Here是 Ubuntu 的小教程。

关于html - 为什么 Revel Web 框架教程应用程序不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25271616/

相关文章:

javascript - 获取包含特定值的 <li> 标签的 id

go - 检查 channel 的值

mongodb - Golang revel+mgo - 当结构变量具有小写名称时不返回数据

go - gvm 在 ubuntu 14.04 中设置 GOPATH

go - URL的非转义查询参数

去 : model ( or interface ) function with input of different types

javascript - 如何在屏幕上显示 JavaScript 变量的数字?

javascript - HTML 中的全文搜索忽略标签/&

javascript - 如何通过单击保存页面将 html 网页转换为 pdf?

go - grpc-通过 https : failed rpc error: code = Unavailable desc = transport is closing: