example01

command
v0.0.0-...-a0b1be5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 10, 2023 License: MIT, MIT Imports: 7 Imported by: 0

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 install github.com/jessevdk/go-assets-builder@latest
Generate assets.go
go-assets-builder html -o assets.go
Build the server
go build -o assets-in-binary
Run
./assets-in-binary

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL