文件名称:go-modular:带有模块的简单 Go 结构
文件大小:786KB
文件格式:ZIP
更新时间:2024-07-03 16:31:26
Go
要求: 安装以下软件包: go get github.com/abbot/go-http-auth go get github.com/gorilla/sessions go get github.com/lib/pq go get github.com/go-sql-driver/mysql 编译一个项目: 转到您的项目根目录 运行命令: go build 会有文件“go-modular” 运行应用程序: 转到您的项目根目录 运行命令: ./go-modular 打开浏览器并输入: 发展: 安装依赖: npm install 1.1 如果没有npm,请安装节点( ) 运行项目: grunt start Grunt 会在 go 文件(*.go)改变后随时重启项目