File tree 2 files changed +29
-1
lines changed
2 files changed +29
-1
lines changed Original file line number Diff line number Diff line change 15
15
* .out
16
16
17
17
# Dependency directories (remove the comment below to include it)
18
- # vendor/
18
+ vendor /
19
19
20
20
# Go workspace file
21
21
go.work
Original file line number Diff line number Diff line change
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
+
You can’t perform that action at this time.
0 commit comments