Skip to content
This repository was archived by the owner on Jun 27, 2023. It is now read-only.
This repository was archived by the owner on Jun 27, 2023. It is now read-only.

proposoal: NewController() should take options #238

Open
@poy

Description

@poy

There are a few features that would be best if they were opt in, whether this be for backwards compatibility or simply preference.

An established pattern for configuring something beyond sane defaults is a variadic list of options (see grpc-go for an example).

NewController(t TestReporter, opts ...ControllerOption){
 // ...
}

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