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.
报告相同问题?