3 Embedding files into go executables at runtime

github.com godoc.org goreportcard.com posted by maja42 1197 days ago  

With all the talk about go:embed, I wanted to show my own embedding library that is based on a different concept.

ember is designed to attach arbitrary files to a go executable after it has already been built - without needing a go tool chain or any other prerequisites.

The main usecase is to attach configuration files and zip archives into an already-compiled executable in a completely cross-plattform way.

Cross-compile your executable once on Jenkins for windows.
Later in production, use your Linux backend to attach a config.json to fully customize the executable for a given user or environment.
Or just create some self-extracting archives for and from any platform.

Register to comment or vote on this story