Skip to content

Commit 9919b79

Browse files
committed
fix JSON naming
1 parent b032055 commit 9919b79

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

gophernotes.go

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,15 @@ var logger *log.Logger
1515

1616
// ConnectionInfo stores the contents of the kernel connection file created by Jupyter.
1717
type ConnectionInfo struct {
18-
SignatureScheme string
19-
Transport string
20-
StdinPort int
21-
ControlPort int
22-
IOPubPort int
23-
HBPort int
24-
ShellPort int
25-
Key string
26-
IP string
18+
SignatureScheme string `json:"signature_scheme"`
19+
Transport string `json:"transport"`
20+
StdinPort int `json:"stdin_port"`
21+
ControlPort int `json:"control_port"`
22+
IOPubPort int `json:"iopub_port"`
23+
HBPort int `json:"hb_port"`
24+
ShellPort int `json:"shell_port"`
25+
Key string `json:"key"`
26+
IP string `json:"ip"`
2727
}
2828

2929
// SocketGroup holds the sockets needed to communicate with the kernel, and

0 commit comments

Comments
 (0)