Skip to content
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

fix(go): use options for more helpers #3383

Merged
merged 4 commits into from
Jul 18, 2024
Merged

fix(go): use options for more helpers #3383

merged 4 commits into from
Jul 18, 2024

Conversation

millotp
Copy link
Collaborator

@millotp millotp commented Jul 17, 2024

🧭 What and Why

In order to use the functional options pattern for WaitForApiKey, I have to move the options to each clients, otherwise we get circular dependencies.
Also add options for PartialUpdateObjects and fix playground.

heavily inspired by https://github.com/uptrace/uptrace-go/blob/master/uptrace/config.go

@millotp millotp self-assigned this Jul 17, 2024
@millotp millotp requested a review from a team as a code owner July 17, 2024 15:12
@millotp millotp requested review from morganleroi and Fluf22 July 17, 2024 15:12
@algolia-bot
Copy link
Collaborator

algolia-bot commented Jul 17, 2024

✔️ Code generated!

Name Link
🪓 Triggered by c8217b730fdf9450e025523b1f0a099b62976e4b
🍃 Generated commit 6531e82230478c0fa761b7791e8d0310b70ce610
🌲 Generated branch generated/fix/go-opts-2

Copy link

Copy link
Contributor

@Fluf22 Fluf22 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is great work! Thank you!

@millotp millotp merged commit 7d2b420 into main Jul 18, 2024
21 checks passed
@millotp millotp deleted the fix/go-opts-2 branch July 18, 2024 07:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants