code: func RegisterRPCFuncs(mux *http.ServeMux, funcMap map[string]*RPCFunc, logger *logging.Logger) {
  	// HTTP endpoints
  	for funcName, rpcFunc := range funcMap {
  		mux.HandleFunc("/"+funcName, makeHTTPHandler(rpcFunc, logger))
  	}
  
  	// JSONRPC endpoints
  	mux.HandleFunc("/", makeJSONRPCHandler(funcMap, logger))
  }
docs: // RegisterRPCFuncs adds a route for each function in the funcMap, as well as general jsonrpc and websocket handlers for all functions.
  // "result" is the interface on which the result objects are registered, and is popualted with every RPCResponse