Makefile helpers for GO.
├── .project
│ ├── yaml.sh # yaml parser
│ ├── config_var.sh # extract yaml config variable
│ └── go-project.mk # include into your Makefile
├── .VERSION # version of your project
├── config.yml # config
└── Makefile # Makefile- Copy
.projectfolder to your project's root folder - Create
.VERSIONfile in the root of your project - Create
config.ymlfile in the root of your project - Create
Makefileandinclude .project/go-project.mk
make vars- print make variablesmake upgrade-project.mk- upgrade project.mk files"make env- pring GO environmentmake generate- generate GO filesmake testenv- pring GO test environmentmake clean- clean produced filesmake purge- clean and purge.toolsandvendorfoldersmake gopath- create a symbolic link to project's PROJ_GOPATH, if it's not cloned in GOPATH.make showupdates- show updates in.toolsandvendorfoldersmake lspkg- list GO packeges in the current projectmake bench- GO test with benchmake fmt- rungo fmton project filesmake vet- rungo veton project filesmake lint- rungo linton project filesmake test- run testmake testshort- run test with -short flagmake covtest- run test with coverage reportmake coverage- open coverage reportmake coveralls- publish coverage to coveralls"
Install cov-report in your project:
go get github.com/go-phorce/cov-report/cmd/cov-report