From c9409047854a468a59e2dd1acb5067ddde919ba8 Mon Sep 17 00:00:00 2001 From: Anmol Sethi <hi@nhooyr.io> Date: Fri, 20 Sep 2019 22:17:57 -0500 Subject: [PATCH] Improve MessageType godoc --- messagetype.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/messagetype.go b/messagetype.go index 6a1205e..d6436b0 100644 --- a/messagetype.go +++ b/messagetype.go @@ -9,9 +9,9 @@ type MessageType int // MessageType constants. const ( // MessageText is for UTF-8 encoded text messages like JSON. - MessageText MessageType = MessageType(opText) + MessageText MessageType = iota + 1 // MessageBinary is for binary messages like Protobufs. - MessageBinary MessageType = MessageType(opBinary) + MessageBinary ) // Above I've explicitly included the types of the constants for stringer. -- GitLab