1
0
mirror of https://github.com/golang/go synced 2024-11-18 15:24:41 -07:00
go/internal/jsonrpc2/servertest
Ian Cottrell 1f08ef6002 internal/jsonrpc2: split reply from request
reply is now passed to handlers separately from request, which allows it to be
substituted by handlers.
This also makes the handler signature much closer to http (which has
ResponseWriter)

Change-Id: I12be2e8e8b9bd508982ba43c9092709429284eaf
Reviewed-on: https://go-review.googlesource.com/c/tools/+/227839
Reviewed-by: Robert Findley <rfindley@google.com>
2020-04-13 01:58:12 +00:00
..
servertest_test.go internal/jsonrpc2: split reply from request 2020-04-13 01:58:12 +00:00
servertest.go internal/jsonrpc2: change handler to a function type 2020-04-06 13:48:45 +00:00