Fork: 4284 Star: 20496 (更新于 2024-07-13 16:06:44)

license: Apache-2.0

Language: Go .

The Go language implementation of gRPC. HTTP/2 based RPC

最后发布版本: v1.64.1 ( 2024-07-04 04:25:11)

官方网址 GitHub网址


GoDoc GoReportCard codecov

The Go implementation of gRPC: A high performance, open source, general RPC framework that puts mobile and HTTP/2 first. For more information see the Go gRPC docs, or jump directly into the quick start.



Simply add the following import to your code, and then go [build|run|test] will automatically fetch the necessary dependencies:

import ""

Note: If you are trying to access grpc-go from China, see the FAQ below.

Learn more


I/O Timeout Errors

The domain may be blocked from some countries. go get usually produces an error like the following when this happens:

$ go get -u
package unrecognized import path "" (https fetch: Get dial tcp i/o timeout)

To build Go code, there are several options:

  • Set up a VPN and access through that.

  • With Go module support: it is possible to use the replace feature of go mod to create aliases for packages. In your project's directory:

    go mod edit
    go mod tidy
    go mod vendor
    go build -mod=vendor

    Again, this will need to be done for all transitive dependencies hosted on as well. For details, refer to golang/go issue #28652.

Compiling error, undefined: grpc.SupportPackageIsVersion

Please update to the latest version of gRPC-Go using go get

How to turn on logging

The default logger is controlled by environment variables. Turn everything on like this:


The RPC failed with error "code = Unavailable desc = transport is closing"

This error means the connection the RPC is using was closed, and there are many possible reasons, including:

  1. mis-configured transport credentials, connection failed on handshaking
  2. bytes disrupted, possibly by a proxy in between
  3. server shutdown
  4. Keepalive parameters caused connection shutdown, for example if you have configured your server to terminate connections regularly to trigger DNS lookups. If this is the case, you may want to increase your MaxConnectionAgeGrace, to allow longer RPC calls to finish.

It can be tricky to debug this because the error happens on the client side but the root cause of the connection being closed is on the server side. Turn on logging on both client and server, and see if there are any transport errors.

最近版本更新:(数据更新于 2024-07-13 19:07:02)

2024-07-04 04:25:11 v1.64.1

2024-07-04 04:25:20 v1.63.3

2024-06-29 02:19:20 security/advancedtls/v1.0.0

2024-07-02 23:58:45 v1.65.0

2024-06-01 06:39:23 cmd/protoc-gen-go-grpc/v1.4.0

2024-05-15 07:06:29 v1.64.0

2024-04-09 06:13:07 v1.63.2

2024-04-09 05:53:47 v1.63.1

2024-04-04 05:52:48 v1.61.2

2024-04-04 05:46:34 v1.62.2


dogs-over-cats, giant-robots, go, golang, grpc, hacktoberfest, microservices, nanoservices, proto, rpc

grpc/grpc-go同语言 Go最近更新仓库

2024-07-21 15:08:07 odigos-io/odigos

2024-07-20 14:11:20 XTLS/Xray-core

2024-07-19 23:48:24 go-gost/gost

2024-07-19 23:24:18 redpanda-data/connect

2024-07-19 22:29:12 tencentcloudstack/terraform-provider-tencentcloud

2024-07-19 16:14:20 junegunn/fzf