This commit is contained in:
2025-11-12 09:41:52 +03:00
commit 2a8566712a
44 changed files with 2602 additions and 0 deletions

20
Makefile Normal file
View File

@@ -0,0 +1,20 @@
BINARY_NAME=server
MAIN_PACKAGE_PATH = ./cmd/main.go
.PHONY: tidy
tidy:
go mod tidy -v
go fmt ./...
.PHONY: build
build:
go build -o bin/${BINARY_NAME} ${MAIN_PACKAGE_PATH}
# GOARCH=arm64 GOOS=darwin go build -o bin/${BINARY_NAME} ${MAIN_PACKAGE_PATH}
.PHONY: run
run: build
./bin/${BINARY_NAME}
.PHONY: gen
gen:
protoc --go_out=. --go_opt=paths=source_relative --go-grpc_out=. --go-grpc_opt=paths=source_relative proto/hello.proto