Skip to content

Commit e634baf

Browse files
committed
all: apply gofmt
Signed-off-by: Sebastien Binet <binet@cern.ch>
1 parent 9fa22f0 commit e634baf

File tree

6 files changed

+20
-13
lines changed

6 files changed

+20
-13
lines changed

msg.go

+4-2
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,8 @@ func (msg Msg) Clone() Msg {
9393
}
9494

9595
// Cmd is a ZMTP Cmd as per:
96-
// https://rfc.zeromq.org/spec:23/ZMTP/#formal-grammar
96+
//
97+
// https://rfc.zeromq.org/spec:23/ZMTP/#formal-grammar
9798
type Cmd struct {
9899
Name string
99100
Body []byte
@@ -126,7 +127,8 @@ func (cmd *Cmd) marshalZMTP() ([]byte, error) {
126127
}
127128

128129
// ZMTP commands as per:
129-
// https://rfc.zeromq.org/spec:23/ZMTP/#commands
130+
//
131+
// https://rfc.zeromq.org/spec:23/ZMTP/#commands
130132
const (
131133
CmdCancel = "CANCEL"
132134
CmdError = "ERROR"

protocol.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,8 @@ func (md *Metadata) UnmarshalZMTP(p []byte) error {
217217

218218
// Property describes a Conn metadata's entry.
219219
// The on-wire respresentation of Property is specified by:
220-
// https://rfc.zeromq.org/spec:23/ZMTP/
220+
//
221+
// https://rfc.zeromq.org/spec:23/ZMTP/
221222
type Property struct {
222223
K string
223224
V string

security.go

+4-3
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,10 @@ func (nullSecurity) Type() SecurityType {
5858
// Handshake implements the ZMTP security handshake according to
5959
// this security mechanism.
6060
// see:
61-
// https://rfc.zeromq.org/spec:23/ZMTP/
62-
// https://rfc.zeromq.org/spec:24/ZMTP-PLAIN/
63-
// https://rfc.zeromq.org/spec:25/ZMTP-CURVE/
61+
//
62+
// https://rfc.zeromq.org/spec:23/ZMTP/
63+
// https://rfc.zeromq.org/spec:24/ZMTP-PLAIN/
64+
// https://rfc.zeromq.org/spec:25/ZMTP-CURVE/
6465
func (nullSecurity) Handshake(conn *Conn, server bool) error {
6566
raw, err := conn.Meta.MarshalZMTP()
6667
if err != nil {

security/null/null.go

+4-3
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,10 @@ func (security) Type() zmq4.SecurityType {
2828
// Handshake implements the ZMTP security handshake according to
2929
// this security mechanism.
3030
// see:
31-
// https://rfc.zeromq.org/spec:23/ZMTP/
32-
// https://rfc.zeromq.org/spec:24/ZMTP-PLAIN/
33-
// https://rfc.zeromq.org/spec:25/ZMTP-CURVE/
31+
//
32+
// https://rfc.zeromq.org/spec:23/ZMTP/
33+
// https://rfc.zeromq.org/spec:24/ZMTP-PLAIN/
34+
// https://rfc.zeromq.org/spec:25/ZMTP-CURVE/
3435
func (security) Handshake(conn *zmq4.Conn, server bool) error {
3536
raw, err := conn.Meta.MarshalZMTP()
3637
if err != nil {

security/plain/plain.go

+4-3
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,10 @@ func (security) Type() zmq4.SecurityType {
3232
// Handshake implements the ZMTP security handshake according to
3333
// this security mechanism.
3434
// see:
35-
// https://rfc.zeromq.org/spec:23/ZMTP/
36-
// https://rfc.zeromq.org/spec:24/ZMTP-PLAIN/
37-
// https://rfc.zeromq.org/spec:25/ZMTP-CURVE/
35+
//
36+
// https://rfc.zeromq.org/spec:23/ZMTP/
37+
// https://rfc.zeromq.org/spec:24/ZMTP-PLAIN/
38+
// https://rfc.zeromq.org/spec:25/ZMTP-CURVE/
3839
func (sec *security) Handshake(conn *zmq4.Conn, server bool) error {
3940
switch {
4041
case server:

socket_types.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,8 @@ func (sck SocketType) IsCompatible(peer SocketType) bool {
8989

9090
// SocketIdentity is the ZMTP metadata socket identity.
9191
// See:
92-
// https://rfc.zeromq.org/spec:23/ZMTP/.
92+
//
93+
// https://rfc.zeromq.org/spec:23/ZMTP/.
9394
type SocketIdentity []byte
9495

9596
func (id SocketIdentity) String() string {

0 commit comments

Comments
 (0)