9 lines
202 B
Makefile
9 lines
202 B
Makefile
build: fmt
|
|
CGO_ENABLED=0 go build -ldflags '-s -w' -v -o bin/main ./
|
|
|
|
tool-gofumpt:
|
|
which golangci-lint > /dev/null 2>&1 || go install mvdan.cc/gofumpt@latest
|
|
|
|
fmt: tool-gofumpt
|
|
gofumpt -w --extra .
|