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:
conn.go
request.go
response.go
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.
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. 🙂
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:conn.go
request.go
response.go
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.