Reputation: 1136
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")
Upvotes: 4
Views: 8208
Restarted my pc. Now, it works fine.