chore: adding code
This commit is contained in:
parent
1378861295
commit
0a2d1bd711
16 changed files with 2603 additions and 0 deletions
33
Makefile
Normal file
33
Makefile
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
.PHONY: all
|
||||
|
||||
# all: test build run
|
||||
all: build run
|
||||
|
||||
.PHONY: run
|
||||
|
||||
run:
|
||||
@go run ./...
|
||||
|
||||
.PHONY: build
|
||||
|
||||
build:
|
||||
@go build -o ./build/upclapi ./...
|
||||
@echo "[OK] upclapi was build in ./build/upclapi !"
|
||||
|
||||
.PHONY: install
|
||||
|
||||
install:
|
||||
@go install
|
||||
@echo "[OK] upclapi was installed in $$GOPATH/bin/upclapi"
|
||||
|
||||
# .PHONY: test
|
||||
|
||||
# test:
|
||||
# @go test -v -coverprofile=cover.out ./...
|
||||
# @echo "[OK] Test and coverage file was created!"
|
||||
|
||||
.PHONY: show_coverage
|
||||
|
||||
show_coverage:
|
||||
@go tool cover -html=cover.out
|
||||
@echo "[OK] Coverage file opened!"
|
||||
Loading…
Add table
Add a link
Reference in a new issue