Skip to content

Commit 606c8a1

Browse files
committed
♻️ refactor: updated codebase #8
1 parent 18dac28 commit 606c8a1

File tree

2 files changed

+29
-1
lines changed

2 files changed

+29
-1
lines changed

.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
*.out
1616

1717
# Dependency directories (remove the comment below to include it)
18-
# vendor/
18+
vendor/
1919

2020
# Go workspace file
2121
go.work

Makefile

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
.PHONY: run build test tidy deps-upgrade deps-clean-cache
2+
3+
# ==============================================================================
4+
# Start Rest
5+
run:
6+
go run ./main/main.go
7+
8+
build:
9+
go build ./main/main.go
10+
11+
# ==============================================================================
12+
# Modules support
13+
test:
14+
go test -cover ./...
15+
16+
tidy:
17+
go mod tidy
18+
go mod vendor
19+
20+
deps-upgrade:
21+
# go get $(go list -f '{{if not (or .Main .Indirect)}}{{.Path}}{{end}}' -m all)
22+
go get -u -t -d -v ./...
23+
go mod tidy
24+
go mod vendor
25+
26+
deps-clean-cache:
27+
go clean -modcache
28+

0 commit comments

Comments
 (0)