The easiest way to embed static files into a binary file in your Golang app (no external dependencies).
This is full project structure example of article The easiest way to embed static files into a binary file in your Golang app (no external dependencies).
Published on Dev.to @ 31 Jan 2020.
1.11+
git clone https://github.com/koddr/example-embed-static-files-go.git
cd example-embed-static-files-go
gosec
(I recommend):go get github.com/securego/gosec/cmd/gosec
make build
make run
If you want to say «thank you»:
Thanks for your support! 😘
MIT