-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
README Example Outdated: Incorrect Package Reference for NewAPIConfig #56
Comments
Thanks for taking the time to report this, we'll take care of it right away 👍 |
Thank you @nicklasl for the quick response! The proposed solution works however your variable names collide with the package names so the go linters are going to complain a bit. I would recommend either changing
to something like:
The import aliases e.g: |
Ahh! thanks! I'm thinking, since this is a readme, I may keep the import aliases to signal where the functions come from. |
Keeping the alias sounds fine for readability - thanks again! The variable names assigned later in the example should change then to stop the name collisions. Other than that I can confirm everything works as intended. |
* docs: fixup docs with correct imports fixes issue #56 * fixup! docs: fixup docs with correct imports
The README example for using the Confidence SDK with OpenFeature appears to be out of date. Specifically, the lines:
is incorrect because the NewAPIConfig function is not part of the github.com/spotify/confidence-sdk-go/pkg/provider package. Instead, it is located in the github.com/spotify/confidence-sdk-go/pkg/confidence package.
The text was updated successfully, but these errors were encountered: