aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex <a.kiryukhin@mail.ru>2022-05-21 20:39:31 +0300
committerGitHub <noreply@github.com>2022-05-21 20:39:31 +0300
commitc5a9af19b1e4510e24be088ce1a67895964f2167 (patch)
tree277dcb33581b91556dd6f4bf55aad02870fcef7a
parent81389df9484c28dfcec1cf7592b8d0f8b7e4e8e1 (diff)
Update README.mdv1.0.0
-rw-r--r--README.md5
1 files changed, 3 insertions, 2 deletions
diff --git a/README.md b/README.md
index 708675e..55e8cf9 100644
--- a/README.md
+++ b/README.md
@@ -36,12 +36,13 @@ Go 1.18+ required
```
Handler must have exact two arguments (context and input of any json serializable type) and exact two return values (output of any json serializable type and error)
-3. Wrap handler with `rpc.Wrap` method and register it in server:
+
+4. Wrap handler with `rpc.H` method and register it in server:
```go
s.Register("multiply", rpc.H(Multiply))
```
-4. Run RPC server:
+5. Run RPC server:
```go
s.Run(ctx)
```