Add go installation instructions

This commit is contained in:
Arthur Wolf 2021-12-07 12:07:44 +01:00 committed by GitHub
parent a07a529559
commit 5938292b56

View File

@ -2,6 +2,25 @@
Go to the Go official website to download the Go SDK <https://go.dev/dl/>.
An example installation looks like this:
```shell
wget https://go.dev/dl/go1.17.4.linux-amd64.tar.gz
sudo rm -rf /usr/local/go
sudo tar -C /usr/local -xzf go1.17.4.linux-amd64.tar.gz
```
Then edit your ~/.profile or ~/.bashrc to have this line at the end:
```shell
export PATH=$PATH:/usr/local/go/bin
```
For the changes to be taken into action, you need to log in again, or run:
```shell
source $HOME/.profile
```
Make sure your `go` is successfully installed:
@ -68,4 +87,4 @@ Your installed bbgo binary will be located in:
/root/go/bin/bbgo version
```
You can use the above instruction to write your own Dockerfile.
You can use the above instruction to write your own Dockerfile.