Update 08.4.md

typographical errors and improved readability
This commit is contained in:
Jimmy99
2016-04-06 13:15:58 +02:00
committed by James Miranda
parent 3551a2aba4
commit fc09c5024c

View File

@@ -29,12 +29,12 @@ Normally, an RPC call from client to server has the following ten steps:
Go has official support for RPC in its standard library on three levels, which are TCP, HTTP and JSON RPC. Note that Go RPC is not like other traditional RPC systems. It requires you to use Go applications on both client and server sides because it encodes content using Gob.
Functions of Go RPC have must abide by the following rules for remote access, otherwise the corresponding calls will be ignored.
Functions of Go RPC must abide by the following rules for remote access, otherwise the corresponding calls will be ignored.
- Functions are exported (capitalize).
- Functions have to have two arguments with exported types.
- Functions are exported (capitalized).
- Functions must have two arguments with exported types.
- The first argument is for receiving from the client, and the second one has to be a pointer and is for replying to the client.
- Functions have to have a return value of error type.
- Functions must have a return value of error type.
For example: