July 2017
Beginner to intermediate
358 pages
10h 54m
English
In the instance that you need to use HTTP as your transport protocol then the rpc package can facilitate this by calling the HandleHTTP method.
The HandleHTTP method sets up two endpoints in your application:
const ( // Defaults used by HandleHTTP DefaultRPCPath = "/_goRPC_" DefaultDebugPath = "/debug/rpc" )
If you point your browser at the DefaultDebugPath you can see details for the registered endpoints, there are two things to note:
Read now
Unlock full access