open-feature / go-sdk-contrib

Community maintained OpenFeature Providers and Hooks for Go
https://openfeature.dev
Apache License 2.0
42 stars 38 forks source link

fix: Make OFREP option public #536

Closed thomaspoignant closed 1 month ago

thomaspoignant commented 1 month ago

This PR

It is not possible to add a conditional option because it has to be set using the NewProvider method.

Ater this PR we should be able to do something like this:

    var options = make([]ofrep.Option, 0)
    options = append(options, ofrep.WithClient(&http.Client{}))
    ofrep.NewProvider("http://localhost:8016", options...)