File tree 1 file changed +22
-0
lines changed
1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change
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
+ ```
You can’t perform that action at this time.
0 commit comments