ID represents a JSON-RPC 2.0 request/response identifier It can be either a string or number per the spec
| 32 | // ID represents a JSON-RPC 2.0 request/response identifier |
| 33 | // It can be either a string or number per the spec |
| 34 | type ID struct { |
| 35 | Num uint64 |
| 36 | Str string |
| 37 | IsString bool // true if ID is a string, false if numeric |
| 38 | IsSet bool // true if ID was present in JSON (not omitted) |
| 39 | } |
| 40 | |
| 41 | // MarshalJSON implements json.Marshaler |
| 42 | func (id ID) MarshalJSON() ([]byte, error) { |
nothing calls this directly
no outgoing calls
no test coverage detected