Makefile
raw| 1 | all: gofumpt import lint |
| 2 | |
| 3 | init: |
| 4 | go install mvdan.cc/gofumpt@latest |
| 5 | go install github.com/golangci/golangci-lint/v2/cmd/golangci-lint@latest |
| 6 | go install github.com/daixiang0/gci@latest |
| 7 | |
| 8 | lint: |
| 9 | golangci-lint run ./... |
| 10 | |
| 11 | gofumpt: |
| 12 | gofumpt -l -w . |
| 13 | |
| 14 | import: |
| 15 | gci write --skip-generated -s standard -s default -s localmodule -s blank -s dot -s alias . |