ConnectionState rename member function to satisfy Stringer interface
This commit is contained in:
parent
084b629ad7
commit
95311e1479
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user