.PHONY: build run clean test # Build variables BINARY_NAME=go-todo-app MAIN_PATH=./cmd/api # Default target all: build # Build the application build: go build -o $(BINARY_NAME) $(MAIN_PATH) # Run the application in development mode run: go run $(MAIN_PATH)/main.go # Clean build artifacts clean: go clean rm -f $(BINARY_NAME) # Run tests test: go test -v ./... # Format code fmt: go fmt ./... # Check for issues vet: go vet ./... # All-in-one check check: fmt vet test