Easy to write and build a GO application
- Easy to build, test without GOPATH
- Generate version from GIT
- Git
- Golang
- Make
You can clone this template wherever you like (not limited in GOPATH).
git clone https://github.com/ikaven1024/go-project-template.git <your-workspace>
Open hack/lib/init.sh
, and set PROJ_PACKAGE
to your GO package`
Delete directory cmd/awesome
and create a new one for your app. You can add more applications under cmd
. The name of application is the same as the directory name.
You also can rename the main.go
to any else you like.
Add you package implement in package
make update # update your code with gofmt or others
make # build all of your application
make verify # run verify
make test # run test
More see in Makefile.
Enjoy Your Self โ:smile:โ