go: verifying github.com/docker/docker@v1.13.1: checksum mismatch
$ go clean -modcache
$ cd project && rm go.sum
$ go mod tidy| # one or the other, NOT both | |
| [url "https://github"] | |
| insteadOf = git://github | |
| # or | |
| [url "git@github.com:"] | |
| insteadOf = git://github |
| # Linux | |
| # add the following to "~/.gitconfig" file | |
| [merge] | |
| tool = intellij | |
| [mergetool "intellij"] | |
| cmd = /usr/local/bin/idea merge $(cd $(dirname "$LOCAL") && pwd)/$(basename "$LOCAL") $(cd $(dirname "$REMOTE") && pwd)/$(basename "$REMOTE") $(cd $(dirname "$BASE") && pwd)/$(basename "$BASE") $(cd $(dirname "$MERGED") && pwd)/$(basename "$MERGED") | |
| trustExitCode = true | |
| [diff] |
| package main | |
| import ( | |
| "fmt" | |
| "reflect" | |
| ) | |
| func Decorate(impl interface{}) interface{} { | |
| fn := reflect.ValueOf(impl) |
| # Binaries for programs and plugins | |
| *.exe | |
| *.exe~ | |
| *.dll | |
| *.so | |
| *.dylib | |
| # Test binary, build with `go test -c` | |
| *.test |
solution 1: 设置系统环境变量
# go env
export GO111MODULE=on
export GOROOT="/usr/local/opt/go/libexec"
export GOBIN=$GOROOT/bin
export GOPATH=$HOME/Dev/golang/golibs
export GOPROXY=https://goproxy.cn,direct
export PATH=$PATH:$GOBIN:$GOPATH/bin