{"id":19782456,"url":"https://github.com/steadylearner/go-mod-with-grpc-example","last_synced_at":"2026-05-14T10:41:02.294Z","repository":{"id":96185861,"uuid":"248505768","full_name":"steadylearner/go-mod-with-gRPC-example","owner":"steadylearner","description":"How to use go mod with gRPC.(Could find the error from the outdated example.)","archived":false,"fork":false,"pushed_at":"2020-03-19T19:18:04.000Z","size":22,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-11T02:32:56.803Z","etag":null,"topics":["go","go-grpc-example","go-grpc-examples","go-mod","go-mod-not-working-with-grpc","go-mod-with-grpc","go-module","go-modules","golang","golang-grpc","grpc","grpc-go","grpc-go-starter","grpc-golang-example","grpc-golang-examples","grpc-golang-starter","grpc-hello-world","how-to-use-go-mod-with-grpc","how-to-use-go-mod-with-grpc-example","steadylearner"],"latest_commit_sha":null,"homepage":"https://www.steadylearner.com/blog","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/steadylearner.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-03-19T13:07:54.000Z","updated_at":"2024-04-23T17:31:48.000Z","dependencies_parsed_at":"2023-03-23T08:48:02.860Z","dependency_job_id":null,"html_url":"https://github.com/steadylearner/go-mod-with-gRPC-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/steadylearner%2Fgo-mod-with-gRPC-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/steadylearner%2Fgo-mod-with-gRPC-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/steadylearner%2Fgo-mod-with-gRPC-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/steadylearner%2Fgo-mod-with-gRPC-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/steadylearner","download_url":"https://codeload.github.com/steadylearner/go-mod-with-gRPC-example/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241113291,"owners_count":19911859,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["go","go-grpc-example","go-grpc-examples","go-mod","go-mod-not-working-with-grpc","go-mod-with-grpc","go-module","go-modules","golang","golang-grpc","grpc","grpc-go","grpc-go-starter","grpc-golang-example","grpc-golang-examples","grpc-golang-starter","grpc-hello-world","how-to-use-go-mod-with-grpc","how-to-use-go-mod-with-grpc-example","steadylearner"],"created_at":"2024-11-12T06:05:11.591Z","updated_at":"2026-05-14T10:41:02.213Z","avatar_url":"https://github.com/steadylearner.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# How to use go mod with gRPC \n\nI followed [the official \"hello world\" example](https://github.com/grpc/grpc-go/blob/master/examples/helloworld/greeter_server/main.go) code. But, I couldn't make it work with go mod easily.\n\nThe major problem was this line. It is likely that the API was removed etc.\n\n```console\nIn server/main.rs, comment this.\n// pb.UnimplementedGreeterServer\n```\n\nI had to inspect what happend to \"UnimplementedGreeterServer\" by reading **pb** in helloworld/helloworld.pb.go. You can see that you can not find it there.\n\n## How to reproduce working code example.\n\n```console\n$go mod init steadylearner.com/grpc\n$go get github.com/golang/protobuf\n$google.golang.org/grpc v1.28.0\n```\n\nInstall what lack here if necessary. [You can refer to the GitHub page for it.](https://github.com/grpc/grpc-go)\n\nThen, you can use this to build protobuf file.\n\n```console\nprotoc -I helloworld/ helloworld/helloworld.proto --go_out=plugins=grpc:helloworld\n```\n\nEverything is ready. First, run gRPC server with **$go run main.rs** in current folder. Then, **$cd client \u0026\u0026 go run main.rs** in another kernel. \n\nYou will see **Received: world** at the server and **Greeting: Hello world** from the client.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsteadylearner%2Fgo-mod-with-grpc-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsteadylearner%2Fgo-mod-with-grpc-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsteadylearner%2Fgo-mod-with-grpc-example/lists"}