关于golang dlv的安装
By admin on 2022-11-03 00:57:42
golang版本大于1.6
$ git clone https://github.com/go-delve/delve $ cd delve $ go install github.com/go-delve/delve/cmd/dlv
版本是1.6或者小于1.6的
# Install the latest release: $ go install github.com/go-delve/delve/cmd/dlv@latest # Install at tree head: $ go install github.com/go-delve/delve/cmd/dlv@master # Install at a specific version or pseudo-version: $ go install github.com/go-delve/delve/cmd/dlv@v1.7.3 $ go install github.com/go-delve/delve/cmd/dlv@v1.7.4-0.20211208103735-2f13672765fe
安装完成以后dlv是存放在GOPATH/bin下面的
需要把bin下面的复制到/usr/local/bin下面
GOPATH的查看命令是 go env