mirror of https://github.com/grpc/grpc-go.git
This commit applies two bulk changes to the grpc error reporting mechanisms: (1.) Error strings for errors that originate within grpc are prefixed with the package name for better clarity for where they originate since they could percolate up in the users call chains to the originator. (2.) Errors that are, in fact, singletons have been converted from fmt.Errorf to errors.New and assigned as package-level variables. This bodes particularly well for enabling API customers to elect to handle these errors upon receipt via equality comparison. This had been previous impossible with the original API. Supplementarily, ``gofmt -w -s=true`` has been run on the repository to cleanup residual defects, and it has detected and repaired a few. TEST=Manual go test ./... |
||
---|---|---|
codes | ||
compiler | ||
credentials | ||
interop | ||
metadata | ||
test | ||
transport | ||
LICENSE | ||
README.md | ||
call.go | ||
clientconn.go | ||
doc.go | ||
rpc_util.go | ||
rpc_util_test.go | ||
server.go | ||
stream.go |
README.md
gRPC-Go: a Go implementation of gRPC, Google's RPC library
To install this package, you need to install Go 1.4 and setup your Go workspace on your computer. The simplest way to install the library is to run:
go get google.golang.org/grpc