Skip to content

Commit 7748117

Browse files
authored
Create Install.md
1 parent 63ec14c commit 7748117

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

Go-Lang/Install.md

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Check Latest Go Version
2+
You can check latest Go Version for any OS like: Linux, macOS or Windows at [Check](https://go.dev/dl/) .
3+
# Install for current version and zsh user commands:
4+
```
5+
wget https://dl.google.com/go/go1.21.3.linux-amd64.tar.gz
6+
sudo tar -xvf go1.21.3.linux-amd64.tar.gz
7+
sudo mv go /usr/local
8+
echo "export GOROOT=/usr/local/go" >> ~/.zshrc
9+
echo "export GOPATH=\$HOME/go" >> ~/.zshrc
10+
echo "export PATH=\$GOPATH/bin:\$GOROOT/bin:\$PATH" >> ~/.zshrc
11+
source ~/.zshrc
12+
```
13+
# Install for bash
14+
```
15+
wget https://dl.google.com/go/go1.23.0.linux-amd64.tar.gz
16+
sudo tar -xvf go1.23.0.linux-amd64.tar.gz
17+
sudo mv go /usr/local
18+
echo "export GOROOT=/usr/local/go" >> ~/.bashrc
19+
echo "export GOPATH=\$HOME/go" >> ~/.bashrc
20+
echo "export PATH=\$GOPATH/bin:\$GOROOT/bin:\$PATH" >> ~/.bashrc
21+
source ~/.bashrc
22+
```

0 commit comments

Comments
 (0)