From 95311e14793dee464bb0cf95d78b67a4633b9bb8 Mon Sep 17 00:00:00 2001 From: mappu Date: Tue, 29 Nov 2016 19:44:45 +1300 Subject: [PATCH] ConnectionState rename member function to satisfy Stringer interface --- ConnectionState.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ConnectionState.go b/ConnectionState.go index 35e13b1..fbb163e 100644 --- a/ConnectionState.go +++ b/ConnectionState.go @@ -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"