Golang备忘录

1
go env -w GOPROXY=https://goproxy.cn

To debug in VSCode, write .vscode/launch.json

1
2
3
4
5
6
7
8
9
10
11
12
13
{
    "version": "0.2.0",
    "configurations": [
        {
            "name": "Launch",
            "type": "go",
            "request": "launch",
            "mode": "debug",
            "program": "${workspaceFolder}/main.go",
            "args": ["-h", "192.168.11.128", "-user", "test", "-pwd", "123123", "-p", "1-65535"]
       }
    ]
}

refer to: https://blog.csdn.net/qq_22211217/article/details/101854419