2014-11-03 23:59:07 -05:00
|
|
|
Dependencies
|
|
|
|
============
|
|
|
|
* go1.3.3
|
|
|
|
* godep
|
|
|
|
* go get github.com/tools/godep
|
2014-11-22 21:11:40 -05:00
|
|
|
* yasm
|
|
|
|
* cover
|
|
|
|
* go get code.google.com/p/go.tools/cmd/cover or yum install golang-cover
|
2014-11-03 23:59:07 -05:00
|
|
|
|
|
|
|
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
|
|
|
|
```
|