This commit is contained in:
antanst
2025-10-09 17:43:23 +03:00
parent 2ead66f012
commit 3a5835fc42
54 changed files with 5881 additions and 120 deletions

View File

@@ -11,7 +11,6 @@ debug:
@echo "GOPATH: $(shell go env GOPATH)"
@which go
@which gofumpt
@which gci
@which golangci-lint
# Test
@@ -19,13 +18,11 @@ test:
go test ./...
tidy:
go work sync
#go mod tidy
go mod tidy
# Format code
fmt:
gofumpt -l -w .
gci write .
# Run linter
lint: fmt
@@ -35,9 +32,9 @@ lint: fmt
lintfix: fmt
golangci-lint run --fix
build:
build: clean
mkdir -p ./dist
CGO_ENABLED=0 go build -o ./dist/gemserve ./main.go
go build -mod=vendor -o ./dist/gemserve ./main.go
build-docker: build
docker build -t gemserve .