File tree Expand file tree Collapse file tree 2 files changed +2
-5
lines changed Expand file tree Collapse file tree 2 files changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -7,14 +7,11 @@ package jsonrpc2
7
7
import (
8
8
"encoding/json"
9
9
"fmt"
10
- "math"
11
10
)
12
11
13
12
// Version represents a JSON-RPC version.
14
13
const Version = "2.0"
15
14
16
- var versionStr = string (Version )
17
-
18
15
// version is a special 0 sized struct that encodes as the JSON-RPC version
19
16
// tag.
20
17
// It will fail during decode if it is not the correct version tag in the
@@ -90,8 +87,6 @@ func NewIntID(v int64) ID { return ID{number: v} }
90
87
// NewStringID returns a new string request ID.
91
88
func NewStringID (v string ) ID { return ID {name : v } }
92
89
93
- const invalidID int64 = math .MaxInt64
94
-
95
90
// WireRequest is sent to a server to represent a Call or Notify operaton.
96
91
type WireRequest struct {
97
92
// JSONRPC is always encoded as the string "2.0"
Original file line number Diff line number Diff line change @@ -59,6 +59,8 @@ func (m *RawMessage) UnmarshalJSON(data []byte) error {
59
59
return nil
60
60
}
61
61
62
+ var versionStr = string (Version )
63
+
62
64
// MarshalJSONObject implements gojay.MarshalerJSONObject.
63
65
func (r * version ) MarshalJSONObject (enc * gojay.Encoder ) {
64
66
enc .String (Version )
You can’t perform that action at this time.
0 commit comments