Open Wang-Yanping1996 opened 3 years ago
You should find the path which golang installed. For example, my install path is /usr/local/Cellar/go/1.16.3/
, so the darwin_amd64
path would be /usr/local/Cellar/go/1.16.3/libexec/pkg/tool/darwin_amd64
.
echo "$(cd `which go`/../../pkg/tool/darwin_amd64 && pwd)"
Through this command, you can locate the directory.
There is no "tool" file in "opt/go/pkg", what should I do ?