在Macbook中安装Go之后,如何找到它的位置?

After I use :

brew install go

Installed my Go in my mac, and it give a Summary:

==> Summary

All threads like this one point out that:

This directory is hidden as it's a system directory and users have no need to change anything in it.

To expose it in finder enter commandshiftg in finder and in the resulting popup enter

/usr/local

Please look at this https://discussions.apple.com/thread/5418731?tstart=0

Choose Go to Folder from the Finder's Go menu and provide /usr/local/ as the path.

One thing that should be noted is that, based on the attached image, you were looking in your /User folder which is not the same as /usr.

You can get the prefix of any Homebrew formula with brew --prefix <formula>. Even if the formula isn’t installed it’ll show where it’d be if it were.

$ brew --prefix go
/usr/local/opt/go

You can open any directory in the Finder from your terminal using open, so all you have to do is:

open $(brew --prefix go)