feat: enhance logging and refactor database handling

This commit is contained in:
peio
2026-01-23 17:54:15 +00:00
parent b067a23bba
commit 179866e6d3
14 changed files with 222 additions and 92 deletions

View File

@@ -4,11 +4,8 @@ BIN_DIR := bin
.PHONY: build run test tidy clean install
build:
export CGO_ENABLED=0
go build \
-trimpath \
-ldflags="-s -w" \
-o "$(BIN_DIR)/$(BINARY)" ./cmd/$(BINARY)
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 \
go build -trimpath -ldflags="-s -w" -o bin/mailcloak ./cmd/mailcloak
run:
go run ./cmd/$(BINARY)