Skip to content

Change options to be pointer structures #122

@nhooyr

Description

@nhooyr

I feel like websocket.AcceptOptions{} and websocket.DialOptions is getting old.

I want to change the public API to accept pointers to the option structs and thus accept nil for the defaults. Nil at the end of a function is imo pretty clearly where some options structure goes. This is a relatively minor change so no major version change.

Does anyone have any strong opinions about this?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions