Golang net/rpc.Client.Call() function example
package net/rpc
Golang net/rpc.Client.Call() function usage example
type Args struct {
A, B int
}
args := Args{8,8}
var reply int
err = client.Call("Operator.Multiply", args, &reply)
if err != nil {
panic(err)
}
fmt.Printf(" %d * %d = %d \n ", args.A, args.B, reply)
Reference :
Advertisement
Something interesting
Tutorials
+6.1k Java : Human readable password generator
+28.6k Golang : Read, Write(Create) and Delete Cookie example
+11.1k Golang : Roll the dice example
+8.2k Golang : Find relative luminance or color brightness
+12k Golang : Find and draw contours with OpenCV example
+30.6k Golang : Remove characters from string example
+6.5k Golang : Convert an executable file into []byte example
+7.8k Golang : Load DSA public key from file example
+5.3k Golang : Get FX sentiment from website example
+29.5k Golang : Login(Authenticate) with Facebook example
+29.1k Golang : Get first few and last few characters from string
+6.5k Elasticsearch : Shutdown a local node