I am looking at the example code at: https://golang.org/pkg/net/rpc/
type Arith int
func (t *Arith) Multiply(args *Args, reply *int) error {
*reply = args.A * args.B
return nil
}
From an OOP perspective, Multiply
seems like a static method which doesn't access any data in Arith
class; as the variable t
is not used. Does it mean that int
in type Arith int
does not have any significance?