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
+21.9k Golang : Use TLS version 1.2 and enforce server security configuration over client
+10.5k Golang : Create matrix with Gonum Matrix package example
+9k Golang : Get SPF and DMARC from email headers to fight spam
+8.4k Golang : Convert word to its plural form example
+8.7k Golang : Find duplicate files with filepath.Walk
+4.6k MariaDB/MySQL : How to get version information
+29.4k Golang : JQuery AJAX post data to server and send data back to client example
+10.6k Golang : Select region of interest with mouse click and crop from image
+7.4k Linux : How to fix Brother HL-1110 printing blank page problem
+7.9k Golang : Gomobile init produce "iphoneos" cannot be located error
+5.8k Golang : Launching your executable inside a console under Linux
+12.2k Golang : Get remaining text such as id or filename after last segment in URL path