1 Star 0 Fork 0

也许/gin

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README

Building a single binary containing templates

This is a complete example to create a single binary with the gin-gonic/gin Web Server with HTML templates.

How to use

Prepare Packages

go get github.com/gin-gonic/gin
go get github.com/jessevdk/go-assets-builder

Generate assets.go

go-assets-builder html -o assets.go

Build the server

go build -o assets-in-binary

Run

./assets-in-binary
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/Happay-Code/gin.git
git@gitee.com:Happay-Code/gin.git
Happay-Code
gin
gin
v1.3.0

搜索帮助