chore: formatting, indentation
This commit is contained in:
parent
f5e2710138
commit
2eebac6fc0
4
Makefile
4
Makefile
|
@ -4,6 +4,7 @@ COMMIT := $(shell git rev-list -1 HEAD)
|
|||
GOPATH := $(shell go env GOPATH)
|
||||
LDFLAGS := "-X 'main.Commit=$(COMMIT)'"
|
||||
DIST_LDFLAGS := $(LDFLAGS)" -s -w"
|
||||
|
||||
export GOPRIVATE=coopcloud.tech
|
||||
|
||||
all: format check build test
|
||||
|
@ -29,7 +30,8 @@ format:
|
|||
@gofmt -s -w .
|
||||
|
||||
check:
|
||||
@test -z $$(gofmt -l .) || (echo "gofmt: formatting issue - run 'make format' to resolve" && exit 1)
|
||||
@test -z $$(gofmt -l .) || \
|
||||
(echo "gofmt: formatting issue - run 'make format' to resolve" && exit 1)
|
||||
|
||||
test:
|
||||
@go test ./... -cover -v
|
||||
|
|
Loading…
Reference in New Issue