package
Version:
v0.8.0
Opens a new window with list of versions in this module.
Published: Mar 24, 2026
License: Apache-2.0
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package io writes serialized JSON-RPC messages to an io.Writer with mutex-guarded concurrency.
WriteJSON marshals v as JSON and writes it to w, followed by a
newline. The mutex serialises concurrent writes.
Parameters:
- w: output stream
- mu: mutex guarding w
- v: value to marshal and write
Returns:
- error: non-nil on marshal or write failure
Source Files
¶
Click to show internal directories.
Click to hide internal directories.