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
+13.3k Golang : Date and Time formatting
+31.7k Golang : How to convert(cast) string to IP address?
+9.7k Golang : Load ASN1 encoded DSA public key PEM file example
+31.6k Golang : Get local IP and MAC address
+6.3k Apt-get to install and uninstall Golang
+11.2k Golang : Calculate Relative Strength Index(RSI) example
+7.1k Golang : Gorrila mux.Vars() function example
+10.8k Android Studio : Checkbox for user to select options example
+4.9k Javascript : How to get width and height of a div?
+12k Golang : Convert a rune to unicode style string \u
+14.9k Golang : Basic authentication with .htpasswd file
+11.6k Android Studio : Create custom icons for your application example