Skip to content

Commit

Permalink
docs: fixup docs with correct imports
Browse files Browse the repository at this point in the history
fixes issue #56
  • Loading branch information
nicklasl committed May 28, 2024
1 parent 8ebaf54 commit 8bc4fb7
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,14 @@ The flag's schema is validated against the requested data type, and if it doesn'

```go
import (
"github.com/open-feature/go-sdk/openfeature"
confidence "github.com/spotify/confidence-sdk-go/pkg/provider"
openfeature "github.com/open-feature/go-sdk/openfeature"
confidence "github.com/spotify/confidence-sdk-go/pkg/confidence"
provider "github.com/spotify/confidence-sdk-go/pkg/provider"
)

provider, err := confidence.NewFlagProvider(confidence.NewAPIConfig("clientSecret"))
confidence := confidence.NewConfidenceBuilder().SetAPIConfig(confidence.APIConfig{APIKey: "clientSecret"}).Build()
provider := provider.NewFlagProvider(confidence)

if err != nil {
// handle error
}

openfeature.SetProvider(provider)
client := openfeature.NewClient("testApp")
Expand Down

0 comments on commit 8bc4fb7

Please sign in to comment.