Package RPC
Remote precedure call The package net/rpc allows Go programs to communicate each others. The package provides access to remote exported methods of an object, implementing a client-server paradigm. Methods have made visible to remote clients as a service with the name of the type of the object. Objects must be exported and registered on the server in order to be accessible. A server may register multiple objects of different types but you can not register objects of the same type . Only the exported methods that meet certain conditions are made accessible: the method has two arguments, both exported (or builtin) types the method's second argument is a pointer, but usually also the first is a pointer the method has return type error The methods that meet these criteria are remotely accessible, other methods of the object are ignored and not accessible. Communication occurs serializing the parameters through the gob format. The transport...