Skip to content

Commit 441d31a

Browse files
committed
Add usage examples information
1 parent 73c1431 commit 441d31a

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

README.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
11
# jsonrpc2
22

3-
It is simple jsonrpc2 client.
3+
It is simple jsonrpc2 client.
4+
5+
Usage:
6+
```go
7+
client := NewClient(serverRpcUrl)
8+
var val int
9+
err := client.Call(context.Background(), "Divide", struct {
10+
A,B int
11+
}{4,2}, &val)
12+
```

0 commit comments

Comments
 (0)