Init commit

This commit is contained in:
世界 2023-02-20 11:39:15 +08:00
commit a42f217515
No known key found for this signature in database
GPG key ID: CD109927C34A63C4
6 changed files with 68 additions and 0 deletions

21
Makefile Normal file
View file

@ -0,0 +1,21 @@
fmt:
@gofumpt -l -w .
@gofmt -s -w .
@gci write --custom-order -s "standard,prefix(github.com/sagernet/),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 -v .