Skip to content

Commit

Permalink
embedding UnimplementedGreeterServer to creating_main.go.md server st…
Browse files Browse the repository at this point in the history
  • Loading branch information
mkusaka authored Jan 18, 2022
1 parent 32c92f1 commit 02cb644
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/docs/tutorials/creating_main.go.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ import (
helloworldpb "github.com/myuser/myrepo/proto/helloworld"
)

type server struct{}
type server struct{
helloworldpb.UnimplementedGreeterServer
}

func NewServer() *server {
return &server{}
Expand Down

0 comments on commit 02cb644

Please sign in to comment.