MakeID coerces the given Go value to an ID. The value should be the default JSON marshaling of a Request identifier: nil, float64, or string. Returns an error if the value type was not a valid Request ID type.
(v any)
| 26 | // |
| 27 | // Returns an error if the value type was not a valid Request ID type. |
| 28 | func MakeID(v any) (ID, error) { |
| 29 | return jsonrpc2.MakeID(v) |
| 30 | } |
| 31 | |
| 32 | // EncodeMessage serializes a JSON-RPC message to its wire format. |
| 33 | func EncodeMessage(msg Message) ([]byte, error) { |
nothing calls this directly
no test coverage detected
searching dependent graphs…