File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ The response to the command is:
3131``` json
3232{
3333 "eventType" : " hello" ,
34- "protocolVersion" : " 1 " ,
34+ "protocolVersion" : 1 ,
3535 "message" : " OK"
3636}
3737```
Original file line number Diff line number Diff line change @@ -81,7 +81,7 @@ func main() {
8181 // fmt.Println("Req. Protocol version:", reqProtocolVersion)
8282 output (& helloMessageJSON {
8383 EventType : "hello" ,
84- ProtocolVersion : "1" , // Protocol version 1 is the only supported for now...
84+ ProtocolVersion : 1 , // Protocol version 1 is the only supported for now...
8585 Message : "OK" ,
8686 })
8787 case "START" :
@@ -187,7 +187,7 @@ func newBoardPortJSON(port *enumerator.PortDetails) *boardPortJSON {
187187
188188type helloMessageJSON struct {
189189 EventType string `json:"eventType"`
190- ProtocolVersion string `json:"protocolVersion"`
190+ ProtocolVersion int `json:"protocolVersion"`
191191 Message string `json:"message"`
192192}
193193
You can’t perform that action at this time.
0 commit comments