Golang net/rpc.Dial(),DialHTTP() and DialHTTPPath() functions example
package net/rpc
Golang net/rpc.Dial(),DialHTTP() and DialHTTPPath() functions usage example
client, err = rpc.DialHTTPPath("tcp", "example.com:8080", "/pathtoprocedure")
or
client, err := rpc.DialHTTP("tcp", "example.com:8080") // HTTP RPC server
or
client, err := rpc.Dial("tcp", "example.com:8080")
if err != nil {
panic(err)
}
References :
Advertisement
Something interesting
Tutorials
+5.7k Golang : Error handling methods
+5.4k Unix/Linux/MacOSx : How to remove an environment variable ?
+21.1k Golang : Sort and reverse sort a slice of strings
+7.3k Golang : File system scanning
+14.4k Android Studio : Use image as AlertDialog title with custom layout example
+19.8k Golang : Append content to a file
+21.5k Golang : How to read float value from standard input ?
+4.7k Javascript : Access JSON data example
+9.4k Golang : Scramble and unscramble text message by randomly replacing words
+5.8k Golang : Find change in a combination of coins example
+7.5k Gogland : Single File versus Go Application Run Configurations
+18.5k Golang : Aligning strings to right, left and center with fill example