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