Documentation
¶
Overview ¶
Program adder demonstrates a trivial JSON-RPC server that communicates over the process's stdin and stdout.
Usage:
go build github.com/creachadair/jrpc2/tools/examples/adder ./adder
Queries to try (copy and paste):
{"jsonrpc":"2.0", "id":1, "method":"Add", "params":[1,2,3]} {"jsonrpc":"2.0", "id":2, "method":"rpc.serverInfo"}
Click to show internal directories.
Click to hide internal directories.