In this video, Miki shows us an example of injecting values at build time using –ldflags.
This allows us to add things (build number, version number, etc..) to the executable every time we build it, without playing around with configuration files or changing the sources.
----
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: Injecting Values at Build Time online without registration, duration hours minute second in high quality. This video was added by user Ardan Labs 16 September 2022, don't forget to share it with your friends and acquaintances, it has been viewed on our site 987 once and liked it 42 people.