echo command doesn't work with PowerShell in Windows 10

时间:2015-10-30 23:08:04

标签: windows powershell go terminal installation

So I'm trying to install golang in my new laptop that has Windows 10 installed in, I was trying to make sure that the working path is correct by echo $GOPATH but it doesn't return anything, and it only return the home path if I typed echo $HOME

I used set GOPATH=/User/folder/path to set the path, is there anything wrong I am doing? or is there any missing files or something in the new laptop?

1 个答案:

答案 0 :(得分:6)

It looks like GOPATH is an environment variable, not a variable like $HOME. In powershell, you can access environment variables like this:

$env:GOPATH