golang_crud:使用 Golang + Revel + Gorp 的早期版本的 CRUD 公告板

时间:2021-07-03 13:19:38
【文件属性】:
文件名称:golang_crud:使用 Golang + Revel + Gorp 的早期版本的 CRUD 公告板
文件大小:94KB
文件格式:ZIP
更新时间:2021-07-03 13:19:38
Go 我通过稍微简化 Revel 的预订制作了一个简单的 CRUD。 mysql 版本。 如果您查看 gorp.go 中的源代码,则有一个 db 设置。 例如) db, err := sql.Open("mysql", "golangkorea:1234@tcp(127.0.0.1:3306)/golangtest") 您需要根据这部分创建一个数据库模式。 ID是golangkorea,密码是1234。 作为本地主机连接。 对于 mysql 模块,您可能需要使用 go get github.com/go-sql-driver/mysql 下载它。 在初始版本中,我们将简单地创建一个用于公告板的 CRUD,然后应用分页。
【文件预览】:
golang_crud-master
----.gitignore(27B)
----app()
--------init.go(2KB)
--------models()
--------views()
--------controllers()
----public()
--------js()
--------css()
--------img()
----README.md(664B)
----tests()
--------apptest.go(316B)
----messages()
--------sample.en(444B)
----conf()
--------app.conf(5KB)
--------routes(849B)

网友评论