I've written a small golang program which reads from a configuration json file a secret api key. When I put the binary in bin, and set up an alias to call it from my shell, it will look for the configuration file in whatever directory I'm currently in.
Is there a way to put the api key into the binary at build -- but keep it separate/secret for version control/git (it's free software)?