$ go get github.com/go-delve/delve/cmd/dlv
$ export GOPATH=~/.go
$ git clone https://github.com/go-delve/delve.git $GOPATH/src/github.com/go-delve/delve
$ cd $GOPATH/src/github.com/go-delve/delve
$ make install
原文:https://www.cnblogs.com/dakewei/p/13190910.html