Injecting Golang variables at build time
Sometimes you want variables to be baked in to your application, but not present in source control. This is one such method in Golang
Just a quick one to share something useful I learnt about injecting variable values at build time in Golang. The usecase for this was adding a Slack webhook URL to a GUI application without either shipping the webhook URL in the code, or expecting the end user to set an ENV VAR with the webhook URL in it.