golang-statik

embed static files into a Go executable

Install

All systems
curl cmd.cat/golang-statik.sh
Debian Debian
apt-get install golang-statik
Ubuntu
apt-get install golang-statik
image/svg+xml Kali Linux
apt-get install golang-statik
Windows (WSL2)
sudo apt-get update sudo apt-get install golang-statik
Raspbian
apt-get install golang-statik

golang-statik

embed static files into a Go executable

statik allows you to embed a directory of static files into your Go binary to be later served from an http.FileSystem.