Initial commit

This commit is contained in:
2021-03-27 09:11:37 +00:00
commit 6b59e24be5
8 changed files with 259 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
CI_RUN?=false
ADDITIONAL_BUILD_FLAGS=""
ifeq ($(CI_RUN), true)
ADDITIONAL_BUILD_FLAGS="-test.short"
endif
prepare:
go get -u -v github.com/go-critic/go-critic/cmd/gocritic
test:
gocritic check
go test $(ADDITIONAL_BUILD_FLAGS) -v -coverprofile cover.out -memprofile mem.out
lint:
go fmt