ConnectionState rename member function to satisfy Stringer interface

This commit is contained in:
mappu 2016-11-29 19:44:45 +13:00
parent 084b629ad7
commit 95311e1479

View File

@ -12,7 +12,7 @@ const (
CONNECTIONSTATE_CONNECTED = 3
)
func (cs ConnectionState) Format() string {
func (cs ConnectionState) String() string {
switch cs {
case CONNECTIONSTATE_DISCONNECTED:
return "Disconnected"