Makefile 341 B

12345678910111213141516
  1. default: build
  2. run:
  3. GIN_MODE=release go run main.go
  4. build:
  5. go build -o chatgpt-dingtalk main.go
  6. build-linux:
  7. CGO_ENABLED=0 GOARCH=amd64 GOOS=linux go build -o chatgpt-dingtalk main.go
  8. build-linux-arm:
  9. CGO_ENABLED=0 GOARCH=arm64 GOOS=linux go build -o chatgpt-dingtalk main.go
  10. lint:
  11. env GOGC=25 golangci-lint run --fix -j 8 -v ./...