Thrift golang reports an error when doing rpc service.

official example of thrift, always reporting an error:

according to the practice of the official website, generate the code, copy the shared and tutorial directories in the code to the src directory of GOPATH, go get git.apache.org/thrift.git/lib/go/thrift, and then execute the server, and the client. This error occurs

Mar.07,2021

is the version of go you are using > = 1.7.6 ?


it is best to use the latest version of golang.


mine is the same mistake. Go version 1.9, have you solved the inconsistency between the thrift package and the thrift version corresponding to


golang.

Menu