We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6448e27 commit c940904Copy full SHA for c940904
messagetype.go
@@ -9,9 +9,9 @@ type MessageType int
9
// MessageType constants.
10
const (
11
// MessageText is for UTF-8 encoded text messages like JSON.
12
- MessageText MessageType = MessageType(opText)
+ MessageText MessageType = iota + 1
13
// MessageBinary is for binary messages like Protobufs.
14
- MessageBinary MessageType = MessageType(opBinary)
+ MessageBinary
15
)
16
17
// Above I've explicitly included the types of the constants for stringer.
0 commit comments