@@ -9,7 +9,7 @@ Install the prerequisites listed in [gRPC Go - Quick Start](https://grpc.io/docs
99Add the following code to ` cmd/generate/generate.go ` :
1010
1111```
12- //go:generate sh -c "protoc --experimental_allow_proto3_optional --go_opt=paths=source_relative --go-grpc_opt=paths=source_relative --proto_path=../transport-inbound/grpc/proto/ --go_out=./ grpc/ --go-grpc_out=./grpc/ ../transport-inbound/grpc/proto/*.proto"
12+ //go:generate sh -c "protoc --experimental_allow_proto3_optional --go_opt=paths=source_relative --go-grpc_opt=paths=source_relative --proto_path=../transport-inbound/grpc/proto --go_out=../../pkg/ grpc/ --go-grpc_out=../../pkg /grpc/ ../transport-inbound/grpc/proto/*.proto"
1313```
1414
1515In ` main.go ` :
@@ -74,7 +74,7 @@ import (
7474
7575 " github.com/example/package/v3/internal/features/commands"
7676 " github.com/example/package/internal/features/queries"
77- pb " github.com/example/package/internal/generated /grpc"
77+ pb " github.com/example/package/pkg /grpc"
7878 featureserver " github.com/example/package/internal/transport-inbound/grpc/feature-server"
7979 " github.com/rs/zerolog"
8080
@@ -161,7 +161,7 @@ package featureserver
161161import (
162162 " github.com/example/package/internal/features/commands"
163163 " github.com/example/package/internal/features/queries"
164- pb " github.com/example/package/internal/generated /grpc"
164+ pb " github.com/example/package/pkg /grpc"
165165)
166166
167167// FeatureServer defines the feature server
@@ -199,7 +199,7 @@ import (
199199 " github.com/example/package/internal/transport-inbound/grpc/feature-server/formatters"
200200 " github.com/example/package/internal/transport-inbound/grpc/feature-server/parsers"
201201
202- pb " github.com/example/package/internal/generated /grpc"
202+ pb " github.com/example/package/pkg /grpc"
203203)
204204
205205// ListFeatureEntities ...
0 commit comments