Skip to content

Remove the GetApiInstance function #414

@toddbaert

Description

@toddbaert

Remove the GetApiInstance function. Exposing the fact that the API is a singleton to users does not make sense. That is an internal implementation detail that users do not need to be aware about. It is also very clunky to have users do openfeature.GetApiInstance().GetClient(). Instead, have the user do openfeature.NewClient().

Remove openfeature.GetApiInstance().GetClient() and only export openfeature.NewClient()

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions