chore: initialize Go module and project scaffold

This commit is contained in:
2026-06-10 00:48:33 +03:30
parent 9e8289dc85
commit cdc699d00b
6 changed files with 232 additions and 0 deletions

27
Makefile Normal file
View File

@@ -0,0 +1,27 @@
BINARY=divad
BUILD_DIR=build
.PHONY: all build run test lint vet clean
all: lint vet build
build:
go build -o $(BUILD_DIR)/$(BINARY) ./cmd/divad
run: build
./$(BUILD_DIR)/$(BINARY)
test:
go test -race -count=1 ./...
lint:
golangci-lint run ./...
vet:
go vet ./...
clean:
rm -rf $(BUILD_DIR)/
tidy:
go mod tidy