当前仓库属于关闭状态,部分功能使用受限,详情请查阅 仓库状态说明
2 Star 19 Fork 0

仓库镜像/gin-gonic-gin
关闭

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
.github
binding
examples
app-engine
assets-in-binary
html
README.md
assets.go
main.go
auto-tls
basic
custom-validation
favicon
graceful-shutdown
grpc
http-pusher
http2
multiple-service
realtime-advanced
realtime-chat
struct-lvl-validations
template
upload-file
ginS
json
render
testdata
vendor
.gitignore
.travis.yml
AUTHORS.md
BENCHMARKS.md
CHANGELOG.md
CODE_OF_CONDUCT.md
CONTRIBUTING.md
LICENSE
Makefile
README.md
auth.go
auth_test.go
benchmarks_test.go
codecov.yml
context.go
context_appengine.go
context_test.go
coverage.sh
debug.go
debug_test.go
deprecated.go
deprecated_test.go
doc.go
errors.go
errors_test.go
fs.go
gin.go
gin_integration_test.go
gin_test.go
githubapi_test.go
logger.go
logger_test.go
middleware_test.go
mode.go
mode_test.go
path.go
path_test.go
recovery.go
recovery_test.go
response_writer.go
response_writer_1.7.go
response_writer_1.8.go
response_writer_test.go
routergroup.go
routergroup_test.go
routes_test.go
test_helpers.go
tree.go
tree_test.go
utils.go
utils_test.go
wercker.yml
克隆/下载
贡献代码
同步代码
取消
提示: 由于 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 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/github-image/gin-gonic-gin.git
git@gitee.com:github-image/gin-gonic-gin.git
github-image
gin-gonic-gin
gin-gonic-gin
v1.3.0

搜索帮助