There is a directory
├── cmd
│ └── main.go
├── go.mod
└── proto
└── forward.proto
write in the terminal
protoc --go_out=. --go_opt=paths=source_relative \
--go-grpc_out=. --go-grpc_opt=paths=source_relative \
proto/forward.proto
I get the error
protoc-gen-go: invalid Go import path "forward" for "proto/forward.proto"
The import path must contain at least one forward slash ('/') character.
See https://developers.google.com/protocol-buffers/docs/reference/go-generated#package for more information.
--go_out: protoc-gen-go: Plugin failed with status code 1. a.mamedov@a-mamedov forward-spinner %
How to fix it and generate grpc for forward.proto file?