This is a creation in Article, where the information may have evolved or changed.
Installing GODEP
The official installation documentation is used go get github.com/tools/godep
, unfortunately, because the "network" issue will report an error that cannot be found golang.org/x/tools/go/vcs
.
and https://github.com/golang/tools is an image of Golang.org/x/tools, the code is the same, so I installed the following.
go get github.com/golang/tools
gopath\src\github.com
The directory is tools
folder.
src
and github.com
peer new x
folder is built, and then Code style= "" >tools all copied in.
then go get github.com/ TOOLS/GODEP
.
at this time GODEP installed in your gopath\bin The
directory.
Using GODEP
Build a demo project to demonstrate GODEP.
- In the
skeleton\src\wiselyman.org\app
directory, execute godep save
, the Godeps folder is generated at this time
GODEP go run main.gogodep go buildgodep go installgodep go test