GOP is a project manangement tool for golang application projects which you can place it anywhere(not in the GOPATH). Also this means it's not go-getable. GOP copy all denpendencies to src directory and all application's source is also in this directory.
So a common process is below:
git clone [email protected]:bac/aaa.git
cd aaa
gop ensure
gop build
gop test
Please ensure you have install the go command, GOP will invoke it on building or testing
go get github.com/lunny/gop
This is an example project's directory.
<projct root>
├── bin
└── src
├── github.com
│ ├── go-xorm
│ │ ├── builder
│ │ ├── core
│ │ └── xorm
│ └── lunny
│ ├── log
│ └── tango
├── main.go
└── models
└── models.go
Create the default directory structs.
gop init
Auto copy dependencies from $GOPATH to local project directory.
gop ensure
List all dependencies of this project and show the status.
gop status
Add a package to this project.
gop add <package>
Remove a package from this project.
gop rm <package>
Run go build on the src directory.
gop build
Run go test on the src directory.
gop test