adder

command
v1.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 1, 2024 License: BSD-3-Clause Imports: 6 Imported by: 0

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"}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL