sourcegraph / jsonrpc2

Package jsonrpc2 provides a client and server implementation of JSON-RPC 2.0 (http://www.jsonrpc.org/specification)
MIT License
190 stars 62 forks source link

Split jsonrpc2.go file into multiple files #65

Closed samherrmann closed 1 year ago

samherrmann commented 1 year ago

This merge request moves some of the contents from the jsonrpc2.go file into their own designated file. The new files being introduced (excluding test files) are as follows:

The motive of this change is to make it easier to navigate the code. Without this change, the jsonrpc2.go file is 813 lines of code.

samherrmann commented 1 year ago

I understand that the organizational changes being proposed in this PR are very opinionated. Feel free to reject this PR if you rather keep the jsonrpc2.go file as is. 🙂