Skip to content

Commit

Permalink
♻️ refactor: updated codebase #8
Browse files Browse the repository at this point in the history
  • Loading branch information
pnguyen215 committed Nov 26, 2023
1 parent 18dac28 commit 606c8a1
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*.out

# Dependency directories (remove the comment below to include it)
# vendor/
vendor/

# Go workspace file
go.work
Expand Down
28 changes: 28 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
.PHONY: run build test tidy deps-upgrade deps-clean-cache

# ==============================================================================
# Start Rest
run:
go run ./main/main.go

build:
go build ./main/main.go

# ==============================================================================
# Modules support
test:
go test -cover ./...

tidy:
go mod tidy
go mod vendor

deps-upgrade:
# go get $(go list -f '{{if not (or .Main .Indirect)}}{{.Path}}{{end}}' -m all)
go get -u -t -d -v ./...
go mod tidy
go mod vendor

deps-clean-cache:
go clean -modcache

0 comments on commit 606c8a1

Please sign in to comment.