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.
restart your code ide. it works