Add Makefile targets for go vet and go fix, use named struct fields in tests, apply go fix improvements
This commit is contained in:
parent
a96b765794
commit
30a5786adf
7 changed files with 34 additions and 28 deletions
7
Makefile
7
Makefile
|
|
@ -24,6 +24,13 @@ clean: ## Removes temporary and build files
|
|||
fmt: $(SOURCES) ## Runs go fmt
|
||||
go fmt ./...
|
||||
|
||||
.PHONY: fix ## Run go fix
|
||||
go fix ./...
|
||||
|
||||
.PHONY: vet ## Runs go vet
|
||||
vet: fmt fix
|
||||
go vet ./...
|
||||
|
||||
.PHONY: test
|
||||
test: ## Test application and generate coverage report
|
||||
$(MAKE) clean
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue