go 依赖库管理总结

1 glide,dep等针对项目自身的依赖

2 公共vendor

3 athens

1) go get -v github.com/gomods/athens

2) cd $GOPATH/src/github.com/gomods/athens/cmd/proxy && go build && ./proxy

3)  export GO111MODULE=on

export GOPROXY=http://127.0.0.1:3000

4) 示例

git clone https://github.com/athens-artifacts/walkthrough.git

cd walkthrough

go mod download

你可能感兴趣的:(go 依赖库管理总结)