//go:embed unleashed
Originally published on Medium: https://dariodip.medium.com/go-embed-unleashed-1eab8b4b1ba6 One of the reasons why I love Go is that Go compiler creates static binaries by default unless you use cgo to call C code, in which case it will create a dynamically linked library. It makes it easy to ship Go programs, create very lightweight Docker images and exploit cross-compiling and plugins. Starting from Go 1.16, it also gives you the opportunity to ship your own “batteries” using the package embed. ...