golang包管理

glide

1
2
3
4
5
6
7
8
$ glide create                            # Start a new workspaces
$
open glide.yaml # and edit away!
$ glide get github.com/Masterminds/cookoo # Get a package and add to glide.yaml
$ glide install # Install packages and dependencies
# work, work, work
$ go build # Go tools work normally
$ glide up # Update to newest versions of the package

注:这里每次通过glide get …后只会在vendor路径下生成第三方包,需要手动将该包同步到$GOPATH,然后运行go build

zhang dong wechat
关注我的微信来交流技术问题吧!