golang 1.16 new feature: embed

What is it about In previous versions of go, you needed to reach out for an external package in order to embed static content inside your binary. My go to one was shurcool/vfsgen, but there were many others worth using. Go 1.16 brings a new package, “embed”, which allows to do that with just the standard library. How to do that The best part of this, it’s extremely simple, just see for yourself....

March 28, 2021 · 2 min · Me