Golang cli application, based on
Myapp is an myapp app.
A basic tree would look like:
.
├── commands
│ ├── myapp.go
│ └── myapp_test.go
├── script
│ └── setup
├── .gitignore
├── .travis.yml
├── CONTRIBUTING.md
├── Gopkg.lock
├── Gopkg.toml
├── LICENSE
├── README.md
├── goreleaser.yml
├── magefile.go
└── main.go
To use it, you can simply:
cd $GOPATH/src/github.com/youruser
git clone git@github.com/deild/myapp.git yourapp
cd myapp
./script/setup youruser YourApp # notice the case on the second arg
It is actually a working app (that does nothing), to run it:
mage vendor
go run main.go -h
Now, you create a GitHub repository for your new app and push it:
git remote add origin https://github.com/youruser/yourapp.git
git push origin master
If you check the README file, you’ll see that there are already a few badges on the bottom, but some of them are not working. Let’s fix them!
First of all, you can read the CONTRIBUTING.md file. It is the “newcomer guide”.