mirror of
https://github.com/unknwon/the-way-to-go_ZH_CN.git
synced 2025-08-12 07:02:11 +08:00
13 lines
196 B
Go
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
|
|
} |