String returns the ID as a string for logging/display
()
| 68 | |
| 69 | // String returns the ID as a string for logging/display |
| 70 | func (id ID) String() string { |
| 71 | if id.IsString { |
| 72 | return id.Str |
| 73 | } |
| 74 | return fmt.Sprintf("%d", id.Num) |
| 75 | } |
| 76 | |
| 77 | // jsonRpcRequest represents an incoming JSON request from stdin |
| 78 | type jsonRpcRequest struct { |
no outgoing calls