Skip to content

Don't import fmt #18

Closed
Closed
@johanbrandhorst

Description

@johanbrandhorst

The only reason to import fmt appears to be because of the following line of code:

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions