Building Go Executables: Embedding Assets

Published: 11 August 2022
on channel: Ardan Labs
6,123
152

One of Go’s biggest advantages is that it compiles to a single executable file.

In Go 1.16 we got a new package called embed, which allows you to embed assets inside the generated executable. Let’s see how to embed a static directory and .sql file.

View the code used in this video: https://github.com/353words/building-go
For more on the embed package: https://pkg.go.dev/embed

----

Access our online courses → https://www.ardanlabs.com/education

Attend a live training → https://www.ardanlabs.com/live-traini...

Other Links:
Website: https://www.ardanlabs.com/
Github: https://github.com/ardanlabs
Twitter:   / ardanlabs  


Watch video Building Go Executables: Embedding Assets online without registration, duration hours minute second in high quality. This video was added by user Ardan Labs 11 August 2022, don't forget to share it with your friends and acquaintances, it has been viewed on our site 6,123 once and liked it 152 people.