forked from minekube/gate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
36 lines (28 loc) · 754 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
all: fmt vet mod lint
# Run tests
test: fmt vet
go test ./...
# Run go fmt against code
fmt:
go fmt ./...
# Run go fmt against code
mod:
go mod tidy && go mod verify
# Run go vet against code
vet:
go vet ./...
# Run golangci-lint against code
lint:
go run github.com/golangci/golangci-lint/cmd/golangci-lint@latest run
# Serve the docs website locally and auto on changes
dev-docs:
cd .web && yarn install && yarn dev
# Install gops & dependencies
pprof-gops-install:
go install github.com/google/gops && \
sudo apt install graphviz gv && \
sudo apt install libcanberra-gtk-module
# Dump heap & show in browser
pprof-heap:
curl -sK -v http://localhost:8080/debug/pprof/heap > /tmp/heap.out && \
go tool pprof -http=:8081 /tmp/heap.out