mirror of
https://github.com/SagerNet/sing.git
synced 2025-03-31 10:27:39 +03:00
21 lines
499 B
Makefile
21 lines
499 B
Makefile
fmt:
|
|
@gofumpt -l -w .
|
|
@gofmt -s -w .
|
|
@gci write --custom-order -s standard -s "prefix(github.com/sagernet/)" -s "default" .
|
|
|
|
fmt_install:
|
|
go install -v mvdan.cc/gofumpt@latest
|
|
go install -v github.com/daixiang0/gci@latest
|
|
|
|
lint:
|
|
GOOS=linux golangci-lint run
|
|
GOOS=android golangci-lint run
|
|
GOOS=windows golangci-lint run
|
|
GOOS=darwin golangci-lint run
|
|
GOOS=freebsd golangci-lint run
|
|
|
|
lint_install:
|
|
go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest
|
|
|
|
test:
|
|
go test ./...
|