February 2020
Intermediate to advanced
404 pages
8h 42m
English
Let's create a simple RPC server that sends the UTC server time back to the RPC client. The RPC server and RPC client should agree upon two things:
The types of these two parameters should match exactly for both server and client. Let's look at the steps for creating an RPC server, as follows:
touch -p $GOPATH/src/github.com/git-user/chapter3/rpcServer/main.go
type Args struct{}type TimeServer int64func (t *TimeServer) GiveServerTime(args ...Read now
Unlock full access