learner
learner

Reputation: 75

Protobuf error - found packages main (main.go) and __ (person.pb.go)

For my project I am passing data between modules, which were 2 different languages. So I am trying to learn protobuf. Followed sample from https://tutorialedge.net/golang/go-protocol-buffer-tutorial/

Everything went well until the last step,

Src >go run main.go person.pb.go
found packages main (main.go) and __ (person.pb.go) in src

What am I missing?

Upvotes: 3

Views: 2376

Answers (1)

sergeysynergy
sergeysynergy

Reputation: 141

May be adding option go_package = "./;main"; in your .proto file will helps.

Upvotes: 6

Related Questions