Closed lovromazgon closed 2 years ago
All message type constants except MessageTypeBegin were of type int32 instead MessageType, this PR fixes this.
MessageTypeBegin
int32
MessageType
I also took the opportunity to run go fmt and go mod tidy on the code.
go fmt
go mod tidy
No kidding. At first glance based on how iota works I would have expected the type to cascade through the entire const group. But you're correct. Thanks!
iota
const
All message type constants except
MessageTypeBegin
were of typeint32
insteadMessageType
, this PR fixes this.I also took the opportunity to run
go fmt
andgo mod tidy
on the code.