2014-11-03 23:59:07 -05:00
|
|
|
Dependencies
|
|
|
|
============
|
|
|
|
* go1.3.3
|
|
|
|
* godep
|
|
|
|
* go get github.com/tools/godep
|
|
|
|
|
|
|
|
Dependency management
|
|
|
|
=====================
|
|
|
|
|
|
|
|
Install or updating a new dependency
|
|
|
|
------------------------------------
|
|
|
|
```sh
|
|
|
|
go get -u github.com/example/dependency
|
|
|
|
# import github.com/example/dependency in go src code
|
|
|
|
godep save ./...
|
|
|
|
```
|
|
|
|
|
|
|
|
Commit all Godep/ modifications, including vendorized files.
|
|
|
|
|
|
|
|
Restoring dev environment dependencies
|
|
|
|
--------------------------------------
|
|
|
|
```sh
|
|
|
|
godep restore
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
Compiling
|
|
|
|
=========
|
|
|
|
```sh
|
|
|
|
make
|
|
|
|
```
|