20 lines
341 B
Markdown
20 lines
341 B
Markdown
|
# Go lang
|
||
|
|
||
|
## Download
|
||
|
[download](https://golang.org/dl/)
|
||
|
|
||
|
## Extract
|
||
|
```bash
|
||
|
sudo tar -C /usr/local -xzf go$VERSION.$OS-$ARCH.tar.gz
|
||
|
```
|
||
|
|
||
|
## Export Path
|
||
|
```bash
|
||
|
sudo bash -c 'cat >>/etc/profile <<EOF
|
||
|
export PATH=\$PATH:/usr/local/go/bin
|
||
|
EOF'
|
||
|
```
|
||
|
|
||
|
## Reference
|
||
|
[Getting Started - The Go Programming Language](https://golang.org/doc/install)
|