February 2020
Intermediate to advanced
404 pages
8h 42m
English
A client also uses the same net/rpc package, but different methods to dial to the server and get the remote function executed. The only way to get data back is to pass the reply pointer object along with the request. Let's look at the steps for creating an RPC client, as follows:
touch -p $GOPATH/src/github.com/git-user/chapter3/rpcClient/main.go
package mainimport ( "log" "net/rpc")type Args struct {}func main() { var reply int64 args := Args{} ...Read now
Unlock full access