I have set a couple of environment variables in Windows 10, but I cannot receive them in Golang and I just can't find out why.
dbUser := os.Getenv("DB_USER")
dbName := os.Getenv("DB_NAME")
Restarted my pc. Now, it works fine.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With