Files
the-way-to-go_ZH_CN/eBook/examples/chapter_15/rpc/rpc_objects.go
2019-07-18 20:55:26 -07:00

13 lines
196 B
Go

// rpc_objects.go
package rpc_objects
import "net"
type Args struct {
N, M int
}
func (t *Args) Multiply(args *Args, reply *int) net.Error {
*reply = args.N * args.M
return nil
}