go-rice

Embed static resources in Go binaries without external dependencies

brewmacoslinux
Try with needOr install directly
Source

About

Easily embed resources like HTML, JS, CSS, images, and templates in Go

Commands

rice

Examples

Embed files from a directory into Go binary$ rice embed-go
Append embedded resources to compiled Go binary$ rice append --exec=./myapp
Generate Go code from resources directory$ rice -i ./cmd/main.go