I\'m trying to set some environment variables on my machine using Go OS
err := os.Setenv(\"DBHOST\", dbHostLocal) if err != nil { log.Fatalf(
The only way to get the behavior you want is to alter the environment of the current shell, and the easiest way is with a simple shell script
# setup.sh export DBHOST="dbhost.url" export CONFIG_VAR_TWO="testing"
and then
$ source setup.sh