Closed johanbrandhorst closed 7 years ago
The only reason to import fmt appears to be because of the following line of code:
fmt
return fmt.Sprintf("CloseEvent: (%s) (%d) %s", cleanStmt, e.Code, e.Reason)
This could trivially be replaced by
return "CloseEvent: (" + cleanStmt + ") (" + strconv.Itoa(e.Code) + ") " + e.Reason
This would lead to smaller file sizes for the projects using the websocket bindings.
See explanation in #19. Closing this.
The only reason to import
fmt
appears to be because of the following line of code:This could trivially be replaced by
This would lead to smaller file sizes for the projects using the websocket bindings.