I'm struggling to understand grpc in golang, the hello world example to be specific .
Specifically this line here:
// server is used to implement helloworld.GreeterServer.
type server struct {
pb.UnimplementedGreeterServer
}
1 - Why is it embedding pb.UnimplementedGreeterServer
as opposed to pb.GreeterServer
?
2 - Why are there 2 .go files in the helloworld directory? Most examples I've looked at have one .go file and one .proto file.