從github中獲取godep
git clone https://github.com/tools/godep.git
將godep移動到指定目錄
mkdir -p ${GOPATH}/src/github.com/tools/
mv godep ${GOPATH}/src/github.com/tools/godep
cd ${GOPATH}/src/github.com/tools/godep
go install ./ #該命令會將 godep 生成到${GOPATH}/bin 下