cheat sheets

Linux

  1. command cheat sheet:

    1
    https://cheatography.com/gugoole/cheat-sheets/linux/

go installation

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
 wget https://golang.org/dl/go1.16.1.linux-amd64.tar.gz
tar -zxvf go1.16.1.linux-amd64.tar.gz
sudo mv go /usr/local
sudo vim ~/.bashrc

# 在代码最后加入
export GOPATH=$HOME/go
export GOROOT=/usr/local/go
export PATH=$PATH:$GOROOT/bin:$GOPATH/bin

# 环境变量生效
source ~/.bashrc

# 查看版本是否安装成功
go version