gpt4 book ai didi

macos - 在 Mac OSX 10.8.4 上,我在哪里可以找到 Go 安装?

转载 作者:数据小太阳 更新时间:2023-10-29 03:29:24 25 4
gpt4 key购买 nike

我正在关注 this online book在我周末学习围棋的道路上。

我试过运行 go help gopath 命令它只返回示例路径以及它们在包和源目录中如何相互关联 - 它实际上并没有说明我可以在哪里找到 go文件夹。

书中特别提到:

First create a new folder where we can store our program. The installer you used in chapter 1 created a folder in your home directory named Go. Create a folder named ~/Go/src/golang-book/chapter2. (Where ~ means your home directory) From the terminal you can do this by entering the following commands:

我在 Go 主页上使用了默认安装程序,因此假设所有安装程序都安装在安装程序附带的默认文件夹中。

如果我在终端cd~/文件夹然后使用ls,没有/Go 文件夹。

我怎样才能找到这个文件夹,以便正确地跟随在线图书?我假设他使用这个文件夹结构是有原因的,并且宁愿不偏离并学习包是如何工作的,等等。

最佳答案

说明说:

Create a folder named ~/Go/src/golang-book/chapter2

我认为这意味着创建了名为“~/Go/src/golang-book/chapter2”的文件夹。安装程序不会创建它,但您可以。

例如在你的终端:

mkdir ~/Go
mkdir ~/Go/src
mkdir ~/Go/src/golang-book
mkdir ~/Go/src/golang-book/chapter2

关于macos - 在 Mac OSX 10.8.4 上,我在哪里可以找到 Go 安装?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19753340/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com