package main type Foo int type Args struct { Num1, Num2 int } func (f Foo) Sum(args Args, reply *int) error { *reply = args.Num1 + args.Num2 return nil }