2024-05-19 09:14:07 +00:00
|
|
|
generate:
|
|
|
|
rm -rf proto
|
|
|
|
mkdir -p proto
|
|
|
|
|
|
|
|
protoc -I ./api \
|
|
|
|
--go_out ./proto --go_opt paths=source_relative \
|
|
|
|
--go-grpc_out ./proto --go-grpc_opt paths=source_relative \
|
|
|
|
--grpc-gateway_out ./proto --grpc-gateway_opt paths=source_relative \
|
|
|
|
--swagger_out=allow_merge=true,merge_file_name=main:./proto \
|
|
|
|
./api/main.proto
|
|
|
|
|
|
|
|
run:
|
|
|
|
go run ./cmd/${REPO_NAME_SNAKE}/main.go
|
2024-05-19 12:13:51 +00:00
|
|
|
|
|
|
|
build:
|
|
|
|
go build -o bin/${REPO_NAME_SNAKE} cmd/${REPO_NAME_SNAKE}/main.go
|